Skip to content

Commit a6d7017

Browse files
committed
Update README.md
1 parent be070ca commit a6d7017

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ A very very simple Battleship game written in plain JavaScript: http://learntoco
33

44
Read about the game and its rules here: https://en.wikipedia.org/wiki/Battleship_(game)
55

6-
## Step 1: Create your files
6+
### Step 1: Create your files
77

88
Useful references:
99
- [Final HTML file](https://github.com/LearnToCodeLA/Battleship-JavaScript/blob/gh-pages/index.html)
1010
- [Final CSS file](https://github.com/LearnToCodeLA/Battleship-JavaScript/blob/gh-pages/style.css)
1111
- [Final JS file](https://github.com/LearnToCodeLA/Battleship-JavaScript/blob/gh-pages/battleship.js)
1212
- [CSS Relative and Absolute Positioning](http://learnlayout.com/position.html)
1313

14-
## Step 2: Create a grid on your HTML page for the game board
14+
### Step 2: Create a grid on your HTML page for the game board
1515

1616
Useful references:
1717
- [Document.getElementById()](https://developer.mozilla.org/en-US/docs/Web/API/Document/getElementById)
@@ -20,18 +20,19 @@ Useful references:
2020
- [style property](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/style)
2121
- [Loops in JavaScript](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Loops_and_iteration)
2222

23-
## Step 3: Model the game board in JavaScript and place ships
23+
### Step 3: Model the game board in JavaScript and place ships
2424

2525
Useful references:
2626
- [Arrays in JavaScript](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array)
2727

28-
## Step 4: Create event handler and write the game logic
28+
### Step 4: Create event handler and write the game logic
2929

3030
Useful references:
3131
- [Events in JavaScript](http://www.kirupa.com/html5/javascript_events.htm)
3232
- [Handling Events for Many Elements](http://www.kirupa.com/html5/handling_events_for_many_elements.htm)
33+
- [Handling Events - Eloquent JavaScript Chapter 14](http://eloquentjavascript.net/14_event.html)
3334

34-
## Step 5: Play the game!
35+
### Step 5: Play the game!
3536

3637
Play the game here: http://learntocodela.github.io/Battleship-JavaScript/
3738

0 commit comments

Comments
 (0)