Code Monkey home page Code Monkey logo

seabattle's Introduction

SeaBattle

This is a simple Java cmd game written by me. I had plans to make it something a bit more serious (like a GUI game, for example), but hasn't done anything alike yet. So for now, it's just a very simple 300+ lines-of-code game. All of it's rules are being told at the beginning, but if you do not understand something - welcome into the source code.

How to play

In order to play it, you need to run the out/production/SeaBattle/cmdver/singleplayer/SeaBattle.class file via the JVM. It is done like so:

$ java -classpath out/production/SeaBattle  cmdver.singleplayer.SeaBattle

After it, the game starts.

Compile from source

It is not very difficult, considering the whole game consists of just one file. It is done like so:

$ cd src/cmdver/singleplayer/ && javac -d ../../../out/production/SeaBattle/SeaBattle.java

The 'bin' directory.

If you get tired of typing the same thing while running or compiling the game, then afraid be not for recently I've written small scripts for automazing the processes of running and compiling it.

You may find them in the bin folder. For now only Windows (Batchfiles) is supported, but soon Linux is to arrive as well.

seabattle's People

Contributors

hgargg-0710 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.