GithubHelp home page GithubHelp logo

hwoy / slider Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 1.17 MB

Slider is a good old day sliding puzzle game!! , Maximum portability , Run in console

Makefile 3.21% C 79.75% Batchfile 0.41% Shell 0.23% Roff 16.40%
sliding-puzzle game console

slider's Introduction

Slider

  • Slider is a sliding puzzle game aim to maximum cross platform.
  • Written in ansi-C.
  • No special lib, standard lib only.

Features

  1. In-house random number generator prng , avoid difference value if you use rand() in stdlib.h in differnece C standard lib
  2. Set seed by -s:[SEED number] parameter
  3. Set blank by -b:[blank charecter] parameter
  4. Portable game core (slider.c,lcg.c,minstd.c)
  5. Easy for porting , No special lib, No file io, No memory alloc
  6. slider.gba ported to GameBoy Advance uses this core function (slider.c,lcg.c,minstd.c)

How to build

$ make
  • For 3x3 ABC
$ make -f Makefile.3
  • For 4x4 ABC
$ make -f Makefile.4
  • For 5x5 ABC
$ make -f Makefile.5
  • For All
$ ls Make* | xargs -I{} make -f {}

How to play

- w  == moves down block
- s  == moves up block
- a  == moves left block to right
- d  == moves right block to left
- -  == quit
- +  == reset a board

Contact me

slider's People

Contributors

hwoy avatar

Watchers

 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.