As some of you may have seen in the questions section of the forum, I have been for the past month or so been working on a game of chess. It was developed entirely in Pythonista, and it is here. There are still lots of bugs, and the AI isn't working properly, but I'm working on that now and thought I'd share what I have here. Please note that as it is a repo, not a single file, an installer file (in
.exefor Windows) is provided in the main directory to download, extract, and place in the site-packages folder the main package. Also, the same file can be used to redownload the source every time it's updated.
It's extremly simple to use, on the order of 3 lines total to start a game using the
scenemodule in Pythonista:
import Phantom game = Phantom.ChessGame() game.gui()
I hope you like it!
Link to repo is fixed, apologies for the typo.
import console console.set_font('Arial', 40) chess_pieces = [unichr(9812+i) for i in xrange(12)] print(' '.join(chess_pieces))
PhantomChesshas been getting quite a few updates in recent weeks and it would be good to get feedback from others. It is a Python-based Chess game that has three modes of operations in Pythonista. It starts up in
text-only modewhere it takes commands on the interactive prompt. The
guicommand switches it into a ui/scene based gui mode. The
skcommand switches it into a ui/sk based gui mode for those who are running the Pythonista v1.6 beta.
To install Phantom, copy the text of
Phantom_installer.pyinto a new Pythonista script window and run it. A local Phantom directory will be created with a
Run_this.pyfile in it. To improve PhantomChess Please open issues or send pull requests.