Skip to content
This repository was archived by the owner on Dec 1, 2021. It is now read-only.

Homework for Week7, Final Assignments #127

Open
wants to merge 22 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
9fb25d0
edited homework
aliciafrench Oct 15, 2013
1df2fff
edited homework
aliciafrench Oct 15, 2013
0259536
edited homework
aliciafrench Oct 15, 2013
1a62168
edited homework
aliciafrench Oct 15, 2013
25fb961
edited homework
aliciafrench Oct 15, 2013
d212318
Merge https://github.com/UWE-Ruby/RubyFall2013
aliciafrench Oct 16, 2013
a6e09a9
edited homework week2
aliciafrench Oct 22, 2013
56ac07c
Merge https://github.com/UWE-Ruby/RubyFall2013
aliciafrench Oct 23, 2013
2d9a77d
completed homework
aliciafrench Oct 29, 2013
8cb80d5
Merge https://github.com/UWE-Ruby/RubyFall2013
aliciafrench Oct 30, 2013
7971cc8
edited homework
aliciafrench Nov 5, 2013
045e7b6
edited homework
aliciafrench Nov 5, 2013
1998c7b
Merge branch 'master' of https://github.com/UWE-Ruby/RubyFall2013
aliciafrench Nov 13, 2013
6066b2e
Merge branch 'master' of https://github.com/UWE-Ruby/RubyFall2013
aliciafrench Nov 13, 2013
4986091
Merge branch 'master' of https://github.com/UWE-Ruby/RubyFall2013
aliciafrench Nov 20, 2013
06f6164
Answered questions homework week7.
aliciafrench Nov 27, 2013
1790aa9
Merge branch 'master' of https://github.com/UWE-Ruby/RubyFall2013
aliciafrench Nov 27, 2013
3835fdb
first version of tic-tac-toe without correct over? function
aliciafrench Dec 2, 2013
32a664a
second version of tic-tac-toe with correct over? function and check o…
aliciafrench Dec 2, 2013
159f5a2
Improved the look of the board
aliciafrench Dec 2, 2013
ecc93ab
Adding final assignements.
aliciafrench Dec 10, 2013
4325d98
Added documentation.
aliciafrench Dec 11, 2013
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Improved the look of the board
aliciafrench committed Dec 2, 2013
commit 159f5a2219c52ab0eaa952cf1d472aebeca6ed41
2 changes: 1 addition & 1 deletion week7/homework/features/step_definitions/tic-tac-toe.rb
Original file line number Diff line number Diff line change
@@ -61,7 +61,7 @@ def player_move
end

def current_state
current_state = "-----\n "+"#{@board[:A1]}"+"#{@board[:A2]}"+"#{@board[:A3]}"+"\n "+"#{@board[:B1]}"+"#{@board[:B2]}"+"#{@board[:B3]}"+"\n "+"#{@board[:C1]}"+"#{@board[:C2]}"+"#{@board[:C3]}"+"\n-----"
current_state = " 1 2 3\n -----\n "+"A|#{@board[:A1]} "+"#{@board[:A2]} "+"#{@board[:A3]}|"+"\n "+"B|#{@board[:B1]} "+"#{@board[:B2]} "+"#{@board[:B3]}|"+"\n "+"C|#{@board[:C1]} "+"#{@board[:C2]} "+"#{@board[:C3]}|"+"\n -----"
end

def over?