Giter Club home page Giter Club logo

battleship's Introduction

battleship

Build Status License

Classic battleship game. Rules

Instruction

Download battleship

You just need to download executable for Windows, Mac or Linux.

Warning. The installer and the program doesn't work from a directory with non-ascii letters in name.

Run dependencies (only for Linux users)

  • Qt library (version 4.6+)
  • Standard library of C language
  • Standard library of C++ language

Simple build (for Linux and Windows)

Build dependencies
  • All the run dependencies
  • cmake
  • make
  • C++ compiler
Build instructions
$ mkdir build-dir
$ cd build-dir
$ cmake /path/to/battleship
$ make

For more build options see additional instructions.

battleship's People

Contributors

mkinney avatar starius avatar zer0main avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

battleship's Issues

cmake warning

Warning:

CMake Warning (dev) in CMakeLists.txt:
  Syntax Warning in cmake code at

    /battleship/CMakeLists.txt:19:36

  Argument not separated from preceding token by whitespace.

CMake version: 3.0.2

Code:

file(GLOB sources "src/model/*.cpp", "src/bot/*.cpp",
    "src/util/*.cpp", "src/controller/*.cpp",
    "src/desk_functions/*.cpp", "src/view/*.cpp",
    "src/*.cpp")

Improve structures: Point, Points

Please, provide the following members of structures Point and Points:

  • Points::isHorizontal() as a method, not as data member. It can be deduced from values of other fields, so it IS TO be deduced.
  • Provide constructor for Point: Point(int row, int col)
  • Provide constructor for Points: Points(Point p1, Point p2)

Using constructors makes code much shorter and less error prone.

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.