Code Monkey home page Code Monkey logo

quixo-cpp's Introduction

Solving Quixo

About Quixo

see Gigamic Quixo

Algorith

see Quixo Is Solved or Quixoの強解決

Code

We have two types of codes which solves quixo. One is in this directory.

The other one is written by François Bonnet. If you want to see the other one see here.

Result

See Quixo Is Solved.

The total number of Win, Loss, and Draw states is written in here


compute all states value from back

You can change board size in global.cpp.

time

  • size 4: 50 seconds
  • size 3: soon
  • size 2: soon

Run

  • g++ -std=c++17 -Wall -O3 from_back.cpp
  • ./a.out

results are saved in results directory.

find optimal strategy

Compute the step to the end. The winner choose min, the loser choose max.
You need to run from_back.cpp at first with the same board size.

time

  • size 4: 150 seconds
  • size 3: soon
  • size 2: soon

Run

  • g++ -std=c++17 -Wall -O3 search-step.cpp
  • ./a.out

results are saved in results directory.

see the results

You need to run search-step.cpp at first with the same board size.
If you want to see all states result, change the comment out of the file convertResult.cpp.

Run

  • g++ -std=c++17 -Wall -O3 convertResult.cpp
  • ./a.out

check the result

You can check the result using the different algorithm.
(But I think the checking algorithm is not perfect)
You need to run search-step.cpp at first with the same board size.

Run

  • g++ -std=c++17 -Wall -O3 check-result.cpp
  • ./a.out

find reachable states

  • g++ -std=c++17 -O3 -Wall reachable_state.cpp
  • ./a.out

result

you can see the result using the function outputReachableStates or countNotReachableStates in convertResult.cpp

quixo-cpp's People

Contributors

st34-satoshi avatar

Stargazers

stepney141 avatar

Watchers

James Cloos avatar François Bonnet avatar  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.