omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    PhantomChess

    Pythonista
    2
    4
    3197
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • misha_turnbull
      misha_turnbull last edited by

      Hello all

      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 .py form and .exe for 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 scene module in Pythonista:

      import Phantom
      game = Phantom.ChessGame()
      game.gui()
      

      I hope you like it!

      screenshot0
      screenshot1
      screenshot2

      (links to screenshots: screenshot0, screenshot1, screenshot2)

      1 Reply Last reply Reply Quote 0
      • misha_turnbull
        misha_turnbull last edited by

        Link to repo is fixed, apologies for the typo.

        1 Reply Last reply Reply Quote 0
        • ccc
          ccc last edited by

          unicode_chess_pieces.py

          import console
          console.set_font('Arial', 40)
          chess_pieces = [unichr(9812+i) for i in xrange(12)]
          print(' '.join(chess_pieces))
          
          1 Reply Last reply Reply Quote 0
          • ccc
            ccc last edited by

            PhantomChess has 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 mode where it takes commands on the interactive prompt. The gui command switches it into a ui/scene based gui mode. The sk command 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.py into a new Pythonista script window and run it. A local Phantom directory will be created with a Run_this.py file in it. To improve PhantomChess Please open issues or send pull requests.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Powered by NodeBB Forums | Contributors