Skip to content

Conversation

kaykakaraka
Copy link

No description provided.

Copy link

@davekempsell davekempsell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

really clear how your program works, and the thorough testing further adds to that. nice job!

redirect ('/result')
end

get '/result' do

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a clear and concise way of displaying who has won the game.

end
end

feature 'player 1 chooses rock' do

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps the second and third tests here are redundant if the first one is working?

end

feature 'player 1 picks rock and player 2 picks paper' do
scenario 'shows player 1 as the winner' do

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this line should say "shows player 2 as the winner"

@player2 = player2
end

def winner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this solution to the coding of the game of rock, paper, scissors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants