Giter Site home page Giter Site logo

klotski's Introduction

Huarongdao (or Klotski)

Klotski is an one-player puzzle game where the goal is to figure out a way to move the largest block to the bottom of the board.

1, After cloning our project:

Go under the directory called "Huarongdao". A folder called "env" should be there. Type into the terminal "source env/bin/activate" to load into the virtual setup(or environment).

2, To open the graphical user interface:

Type into the terminal "python3 player.py", then a window should pop up. To view all the games, click "select mode". To quit the program, click "quit".

3, After going into the select mode menu:

To play any one of the 16 games, just click on any of them.

4, To move a piece of the puzzle:

Click on the edge of any of the piece to the direction you want it to move.

5, To see the solution to a certain game:

Click on answer to view the solving process of the game.

6, If you want to see how RL and RTHS solves the game:

Open the file called main.py, and modify the main function by changing the type of the game you want for each game. The four functions are in the same file. After modification, type into the terminal "python3 main.py" to see the reward recieved after each episode(if you are running RL).

klotski's People

Contributors

shwayw avatar meilin-lyu avatar rain981012 avatar kii-26 avatar lhnkl 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.