+ All Categories
Home > Documents > Rock, Paper, Scissors! - Oakland UniversityFSM •11 states •Represent the scores of each player...

Rock, Paper, Scissors! - Oakland UniversityFSM •11 states •Represent the scores of each player...

Date post: 01-Feb-2020
Category:
Upload: others
View: 2 times
Download: 0 times
Share this document with a friend
8
ROCK, PAPER, SCISSORS! Justin Thomson, Rachel Pilarowski, Marwan Oro
Transcript
Page 1: Rock, Paper, Scissors! - Oakland UniversityFSM •11 states •Represent the scores of each player •Changes state based on which player won the round •Keeps track of the scores

ROCK, PAPER, SCISSORS!Justin Thomson, Rachel Pilarowski, Marwan Oro

Page 2: Rock, Paper, Scissors! - Oakland UniversityFSM •11 states •Represent the scores of each player •Changes state based on which player won the round •Keeps track of the scores

RULES

• First player to 3 wins

• 3-2-1 “shoot”

Page 3: Rock, Paper, Scissors! - Oakland UniversityFSM •11 states •Represent the scores of each player •Changes state based on which player won the round •Keeps track of the scores

BLOCK DIAGRAM

Page 4: Rock, Paper, Scissors! - Oakland UniversityFSM •11 states •Represent the scores of each player •Changes state based on which player won the round •Keeps track of the scores

COMPARATOR

• 6 switches – 3 for each player

• Determines which player won

• Determines “Invalid” input or “Tie”

• Outputs what each player chose

• “r” = rock

• “P” = paper

• “S” = Scissors

• Only processes on “shoot”

• Shoot comes from counter

Page 5: Rock, Paper, Scissors! - Oakland UniversityFSM •11 states •Represent the scores of each player •Changes state based on which player won the round •Keeps track of the scores

FSM

• 11 states

• Represent the scores of each player

• Changes state based on which player won the round

• Keeps track of the scores

• Outputs to the multiplexing display

Page 6: Rock, Paper, Scissors! - Oakland UniversityFSM •11 states •Represent the scores of each player •Changes state based on which player won the round •Keeps track of the scores

STATE MACHINE

Page 7: Rock, Paper, Scissors! - Oakland UniversityFSM •11 states •Represent the scores of each player •Changes state based on which player won the round •Keeps track of the scores

COUNTER

• The main driver of the project

• Controls:

• When to compare two players’ moves

• Controls state changes

• Counts the amount of time to trigger certain processes

Page 8: Rock, Paper, Scissors! - Oakland UniversityFSM •11 states •Represent the scores of each player •Changes state based on which player won the round •Keeps track of the scores

MULTIPLEXING DISPLAY

• Used to determine when individual segments are displayed

• Also determines what is displayed when enabled

• Allows for the user to receive feedback based on the state of the game


Recommended