Giter Site home page Giter Site logo

exapunks_solitaire_bot's Introduction

Exapunks Solitare Bot

A spike to solve the ПАСЬЯНС (Solitare) mini-game in Exapunks.

Commands

Run the demo - python main.py

Run the tests - python tests.py

Inspiration

About ПАСЬЯНС

  • Russian Solitare variant
  • 9 stacks and 1 spare spaces
  • 36 cards total:
    • 6-10 red x2 (10)
    • 6-10 black x2 (10)
    • Club black (4)
    • Space black (4)
    • Heart red (4)
    • Diamond red (4)
  • Start with 4 cards on each stack and spare empty
  • Valid move 1: card with lower value and opposite color is put below (e.g. 9R below 10B)
  • Valid move 2: can place onto spare cell if empty
  • Valid move 3: same suit place onto another card of same suit (e.g. HR onto HR)
  • Strategies:
    • Try to empty a stack so you can place a 10 and descend
    • Try to empty a stack so you can place a suit and stack
  • Stacks are locked when 4 of same suit or 10-6 are stacked

exapunks_solitaire_bot's People

Contributors

davidjamesbutton avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.