##Getting started
- Fork this gist
- Clone your forked copy onto your local machine
- Open the files in your text editor
$ ruby tests.rb
##Procedure
- Read the error message
##Getting started
$ ruby tests.rb
##Procedure
##Using git from the command line to submit Socrates challenges
###Downloading the gist
https://gist.github.com/e99faa422207f43ec6fc.git
print "\e[H" | |
print "\e[2J" | |
print "\e[5m" | |
2.times do | |
puts " | |
### #### #### # # # ### ##### # # ##### ##### | |
# # # # # # # # # # # # # # | |
# # #### #### # # # # # # #### # # | |
# # # # # # # # # # # # # # # |
#check it |
//------------------------------------------------------------------------------------------------------------------ | |
// YOUR CODE: Create your Zoo "object literal" and Animal "constructor" and "prototypes" here. | |
//------------------------------------------------------------------------------------------------------------------ | |
function Animal(name, legs) { | |
this.name = name; | |
this.legs = legs; | |
} | |
Animal.prototype = { |
<!doctype html> | |
<html> | |
<head> | |
<link rel="stylesheet" href="http://cdn.jsdelivr.net/normalize/2.1.0/normalize.css"> | |
<link rel="stylesheet" href="main.css"> | |
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800"> | |
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Lato:100,900"> | |
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/3.0.2/css/font-awesome.min.css"> | |
</head> |
20.00 |
# only 5 ships are placed | |
# Board is printed with headers and is formatted for spacing | |
# ability to manually place ships horizontally | |
# ability to manually choose coordinates for salvos | |
# ability to dictate player types (human vs human, human vs computer, computer vs computer) | |
# only show players' boards at end of game | |
# if player is human, show opponent's board with previous attack attempts marked // DONE | |
# update the board to show attempted tiles // DONE | |
# translate letters to values ("A1" should -> (0,0)) // DONE | |
# if either player is a human, enter key must be pressed between turns (makes gameplay easier to follow) // DONE |
#7 ships are only placed horizontally | |
#7 ships are placed at random by the computer on both boards | |
#future features: | |
# -ability to manually place ships | |
# -ability to place (manually and automatically) ships vertically | |
# -ability to manually choose coordinates for salvos | |
# -ability to dictate players (human vs human, human vs computer, computer vs computer) | |
class Battleship |