Skip to content

An Othello/Reversi game written in Python with PyGame.

License

Notifications You must be signed in to change notification settings

taihsuanho/KyleOthello

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KyleOthello

Screenshot - 800x600

This Othello chess game was my first pygame work written in early 2016, originally intended for a tutorial teaching my 12-year-old son, Kyle, coding with python. Unfortunately, he was not interested in coding at all.

I put my codes here, hopefully anyone can get inspired or help from my work. This game was developed on Windows 7 with Python version 3.4.4 and pygame 1.92a. In this work, I implemented bit-board representation to speed up chess related queries. I also created some small but useful UI functions, such as buttons, switch, animation, animating slider, message box with optional OK and CANCEL buttons, talking box showing text character-by-character, and timer mechanism to invoke a function or post a message with arguments after a specified time delay.

To play the game, you can run KyleOthello.py source with Python, or you can run the executable KyleOthello.exe in distribution folder if you don't have Python in your PC. Before playing, you can copy some JPG and MP3 files you like into BKIMG and BGM folders respectively, so as to show those images sliding under the chess board and to enable playback of background music. The JPGs can be in any size, but if their dimension is 800x600, it will consume much less CPU resources for image conversion.

I hope you enjoy playing Othello with the avatar of my son, actually the computer, and you are welcome to leave me any comments about the game, especially on the artificial intelligence part. This work is under MIT License, and anyone is free to use my code, just giving me some credit.

About

An Othello/Reversi game written in Python with PyGame.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages