Giter VIP home page Giter VIP logo

battleships's Introduction

Build Status

Battleships

This is a legacy project! Please use API and Web Client instead, and follow up on CLI Client.

Battleships (sea battle) game for web and command line (PHP CLI)

App is by default set in dev/debug mode for long calls (see Setup section) which might not work well on some of shared hosting.

DEMO

http://dev.lekowski.pl/ OR from command line run: php bin/client.php

LINKS

=== Installation ===

  1. Download from https://github.com/jlekowski/battleships/
  2. Copy to your web server directory (advised to point domain to public folder)
  • You might need to add writing permission to db\ directory (chmod 777)
  • You might need to add writing permission to log\ directory (chmod 777)
  • You might need change to short calls (see Setup section)
  1. Enter the URL and enjoy the game

=== Setup ===

init/config.php

  • SQLITE_FILE
  • change to a random name if your db folder is accessible through the browser
  • CHECK_UPDATES_TIMEOUT
  • 120 - suggested for long calls
  • 5 - suggested for short calls
  • CHECK_UPDATES_INTERVAL
  • 2 - suggested for long calls
  • 0 - suggested for short calls
  • CHECK_UPDATES_COUNT
  • 50 - suggested for long calls
  • 1 - suggested for short calls

public/js/main.js

  • debug
  • set to true for debugging mode

=== Changelog ===

  • version 0.6.2
  • Refactored code (JS formatting)
  • Added command to toggle debug mode
  • Added Travis build check
  • Fixed bugs (name change, Mac Cmd key)
  • version 0.6.1
  • Changed REST response format
  • Added more unit tests
  • Updated End-to-End test
  • Refactored DB and ApiClient Class
  • version 0.6
  • Moved from SOAP to REST API (both supported, but SOAP will be removed in 0.7)
  • Upgraded client to jQuery v2
  • Added simple End-to-End test
  • Added first unit tests
  • Refactored a lot of code (Battleships object in JS, exceptions instead of errors and others)
  • version 0.5.1
  • Small fix when mod_rewrite turned off
  • version 0.5
  • Refactored code (namespaces, naming, file structure)
  • Added chat information for CLI
  • Fixed bugs (long call settings, coordinates validation)
  • version 0.4
  • Added marking whose turn it is
  • Added random ships setting
  • version 0.3
  • Moved webservice to SOAP
  • Added command line client
  • version 0.2.2b
  • Fixed auto start update and escape encoding
  • version 0.2.1b
  • Fixed check sunk ship bug
  • version 0.2b
  • Fixed bugs
  • Refactored code
  • Updated documentation
  • version 0.1b
  • Created first working battleships game

battleships's People

Contributors

jlekowski avatar

Stargazers

 avatar Kasparas avatar Maciej Piskorek avatar  avatar

Watchers

Maciej Piskorek avatar  avatar

Forkers

designpatrol

battleships's Issues

SQL Structure?

Hello, what is the MYSQL Structure?
MYSQL not working, can u help?
Thanks

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.