Presentation is loading. Please wait.

Presentation is loading. Please wait.

Spencer Julian. Abstract What is "Hackers of Catron"? o Electronic Settlers of Catan® board. Settlers of Catan is a resource gathering and trading board.

Similar presentations


Presentation on theme: "Spencer Julian. Abstract What is "Hackers of Catron"? o Electronic Settlers of Catan® board. Settlers of Catan is a resource gathering and trading board."— Presentation transcript:

1 Spencer Julian

2 Abstract What is "Hackers of Catron"? o Electronic Settlers of Catan® board. Settlers of Catan is a resource gathering and trading board game in which players compete to build the largest economy. What we will improve upon? o The game is really fun, but it takes too long to set up. We will shorten the setup process. o Make resource gathering and spending automatic. o This project intends to simplify the execution of Catan without adding more complexity.

3 USB ll Raspberry Pi Web Server AVR32 UC3 B Microcontroller (8) Hall Effect Sensors Economy Control Logic RGB LED Driver Single Hall Effect Sensor Game Control Code 7 Segment LED Display Driver Wifi Access Point (8) 7 Segs 5 sets (daisy-chained) (3) RGB LEDs 7 sets (daisy-chained) Hall 18 2 3 Block Diagram 8:1 MUX 18 Sets Addr - 3 SPI 2 I2C Load Enable Seg 8 Dig 8 RGB 3 Hall TWI

4 Software Development Status Test modules written o Basic LED Heartbeat Test o RGB LED Color Test o Hall Effect Selection Test o 7 Segment Crazy 8's (Validity) Test o I 2 C Micro as EEPROM Test o Raspberry Pi I 2 C Terminal Program Code Written o Majority of Raspberry Pi Web Interface Game Flowchart Completed

5 Software Design Considerations State Machine 7 Modules o I 2 C i. Microcontroller Slave ii. Raspberry Pi Master iii. running at 100 kHz o SPI i. 7 Segment Displays ii. Running at 2 MHz, 8-bit, SPI Mode 0 o PLL i. Running at 48 MHz

6 Software Design Considerations Modules Continued o GPIO i. LEDs ii. Hall Effect Sensors o DSP i. Random Numbers o Delay Module

7 Code Design Power On Micro Initialization Initial Piece Placement Game Loop Initial Board Generation Play New Game? Ready for Power Off Wait for Pi to Boot Wait for Pi to Shut Down No Yes

8 Initial Board Generation For each hexagon o Assign a Resource from available Resource Pool o Remove Resource from Resource Pool Select random edge hexagon o Assign scarcity from list for each resource hexagon in sequence o Skip desert Go to wait for Pi To Boot

9 Initial Piece Placement Wait for players to join Randomly assign player order For each player 1-4 o Wait for settlement placement and confirm o Wait for road placement and confirm For each player 4-1 o Wait for settlement placement and confirm o Wait for road placement and confirm o Assign Resources Start Game Loop

10 Main Game Loop While turn isn't over o If dice roll pressed i. Check if 7 1. If yes, make players with more than 7 resources discard half and move thief 2. If no, assign resources to players as appropriate ii. Set Dice Rolled Flag o If dev card played i. Check if knight 1. If yes, move thief 2. If no, place 2 roads

11 Main Game Loop o Check if piece purchased i. If road, place road ii. If city, place city iii. If settlement, place settlement o Update Board State o Check if Ending Turn i. If yes, clear dice rolled, move to next player ii. If no, continue looping


Download ppt "Spencer Julian. Abstract What is "Hackers of Catron"? o Electronic Settlers of Catan® board. Settlers of Catan is a resource gathering and trading board."

Similar presentations


Ads by Google