Code Monkey home page Code Monkey logo

snake-and-ladder's Introduction

Game Screenshot Game Screenshot

Snake and Ladder

This is a simple terminal snake & ladder game. I made it for basics of computer course and it is my first c++ project.I tried my best to write code with good-readability and learned many things from it.

Game Features

Highly customizable.You can define number of snakes , ladders , cells and players.

It uses an implemention of BFS algorithm to find shortest path from player P to last cell(I wrote an implemention of djikstra algorithm for fun too).You can take average of distances as a factor of game difficulty(for simplicity).

Colorful with simple animations thanks to ANSI escape sequences(some enviornments may or may not support all of them).

playing sound and music with SDL library.

libraries/frameworks used:

-SDL2 : playing dice sound and music.Background music is from Mount and Blade : With Fire and Sword.

QT : QDir and QString to work on directories and files.

C++ standard library.

How to play

Each play presses enter on his turn to throw dice.

TO-DO :

Designing game levels based on Marcov chain.

snake-and-ladder's People

Contributors

oracleofdelphii avatar

Stargazers

Ricky avatar Mohammad Javad Ghasemy avatar Amirmohsen Ekhtiari 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.