Code Monkey home page Code Monkey logo

zombie-klotski's Introduction

Zombie Klotski

Console program implementaion using smart algorithms DFS - BFS - Hill Climber

Manual:

When running the game the number of rows and columns is required to be entered by the user The game contains:

1- The option of playing from the user The current patch is printed and the cursor position is indicated within the patch with [] The cursor is moved with the buttons Y-J-H-G Y up - H down - J right - G left When we want to move an element within the board (the element must be e-empty) we move the cursor to the element to be moved and then must press C for the check, then the available navigation directions for the element are printed, then we move the element directly with the buttons W-A-S-D W up - S down - D right - A left (The object should be moved immediately after testing with the C button)

2- Solve the game by DFS algorithm

3- Solve the game by BFS algorithm

4- Solve the game with the Hill Climber algorithm Within the algorithm there are a couple of For loops The first is for the first empty space The second is for the second empty space The same stack created for DFS is used to not repeat the definition of a new stack There is a FindGoal function that displays the box coordinates that are located below the squares of the Big Zombies

5- Solve the game with an algorithm that return and tries all available moves for each element

zombie-klotski's People

Contributors

ali7ali avatar

Stargazers

 avatar  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.