Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eshirazi/2048-bot
https://github.com/eshirazi/2048-bot
Last synced: 1 day ago
JSON representation
- Host: GitHub
- URL: https://github.com/eshirazi/2048-bot
- Owner: eshirazi
- Created: 2014-04-19T20:56:09.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2020-09-27T14:25:08.000Z (over 4 years ago)
- Last Synced: 2023-08-13T07:33:52.286Z (over 1 year ago)
- Language: Python
- Size: 19.5 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
2048-bot
========2048-bot is an implementation of a computer bot playing the famous 2048 game.
Written in Python, this project contains an implementation of the 2048 game,
as well as a bot script for automatically playing and solving it (or at least trying to :).This project should run fine on recent versions of Python 2.x as well as Python 3.x
What's included
---------------- __bot.py__ - An implementation of a computer bot for playing the 2048 game.
- __board.py__ - A Python class representing an 2048 game board, and implementing various operations on it.
- __interactive_game.py__ - A manually playable version of the game (use the arrow keys for playing).
- __moves.py__ - An "enum like" class definition used to define the four legal moves of the game (up, down, right, left).
- __config.py__ - Defines serveral global constants (the size of the boards, and the target score for winning).
- __helpers.py__ - some helper routines.