Giter VIP home page Giter VIP logo

subtractiongame's Introduction

SubtractionGame

This is a short puzzle game in JS. Version 2.0

Rules

Take one ball or two balls. Who takes the last ball looses. Play with computer and see if you can win when he starts or if you start. From version 2.0 you can choose with how many balls you start and how many balls each player can maximally take each turn.

Starting game

Just open subgame_en.html for english version or subgame.html for polish version.

Plans for next version

  1. Better internationalization (not with X different htmls)
  2. Checking if balls number is not < 3 or balls in 1 move < 1. Others conditions OK (balls in 1 move could be > total balls number, cause you cannot take more balls than you see on screen).
  3. In title DIV make and update info about: a. remaining balls b. balls currently highlighted

Development hints

  1. after changing sub.js which is main JavaScript file for the game, remember to update sub.min.js by minifying sub.js

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.