timotree3 / battleship Goto Github PK
View Code? Open in Web Editor NEWMy first battleship game. Written in python.
License: GNU General Public License v3.0
My first battleship game. Written in python.
License: GNU General Public License v3.0
Examples:
Changed hits in history to be red, ships to be yellow, etc.
Right now that command is really bad.
I would like to add a suggested move functionality that basically suggests whatever the AI would do.
Currently the only way to tell who did what is the sequence the history is in.
My idea is to color code the history kind-of like this:
for action, color in history:
print('\033[2K{}{}.'.format(color, action.title()))
This can cause game not completing as well as no message appearing for sinking the ship.
Currently there are many configurable constants in place but none can be changed without editing the game file.
I'm thinking GPL.
I've been trying to make the code more readable for people other than me. We'll see how this goes.
More interesting prompts and better phrased messages. At this point the messages are fairly bland.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.