Hardware Reference
In-Depth Information
Your objectives
We will build our Connect Four desktop game through the following aciviies:
F Installaion of the pre-requisites ( Mission checklist )
F A hello world example with the Python-pygame
F Input control design for the game
F Geing started with the Connect Four game (UI + sound efects)
F A brief descripion of the Connect Four Game AI
F Marquee design and control
F Seing up of the switches using a cardboard box
Mission checklist
One of the main prerequisites for this project is the installaion of Python-pygame .
The tool can be installed in a single step as follows:
sudo apt-get install python-pygame
This is the only software tool that we will use in this project. We require the following items
for the construcion of the arcade cabinet. We also need the following items for the project:
Item
Estimated Cost
A cardboard box
Momentary Press buttons - Arcade style * 8 ( http://na.suzohapp.
com/all_catalogs/pushbuttons/58-9111-L )
2.70 USD each
16*32 LED display from Adafruit or Pi-Lite display for the Raspberry Pi
(optional)
USD 40 USD /31 USD
A monitor of the reader's choice with signal cable to connect to
Raspberry Pi
50 USD approximately
Raspberry Pi
25 USD/35 USD
RGB LED strip (optional)
10 USD approximately
Hello world example with the pygame
In this task, we will learn the usage of pygame for game development. We will get started
with an example that opens a blank window and write a couple of lines to monitor events
so that we can quit the program if the window is closed.
We will go through the important features of the pygame module, which is necessary to
build our arcade game, including playing sounds and controlling the menu.
Search WWH ::




Custom Search