teifion / reversi Goto Github PK
View Code? Open in Web Editor NEWA simple reversi game written in Python using PyGame
A simple reversi game written in Python using PyGame
Use this code as you see fit, it's so far got zero tests and probably doesn't work correctly on certain systems. I'm putting it here because I'm sure somebody will benefit from using it. Dependancies: Python 2.6.1 PyGame I wanted to learn how to use PyGame and figured that 0's and X's was a little too basic for what I wanted to do so tried my hand at Reversi (http://en.wikipedia.org/wiki/Reversi). This is the result. The program is run simply with: python main.py By default the AI is enabled, you can turn it off manually in reversi.py by setting "use_ai" to False in the __init__ function of the Reversi class. The program was written on a Mac so the Quit and New game commands (Cmd + Q and Cmd + N) will probably not work on a PC as I'm not sure what the keyboard shortcuts for those are. Things that can be improved upon: Classes are not named correctly according to PEP8 The AI is very dumb, it simply goes for the moves that capture the most
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.