Skip to content

Hafiz Rps version - #2134

Open
Hafizalimi7 wants to merge 3 commits into
makersacademy:mainfrom
Hafizalimi7:main
Open

Hafiz Rps version#2134
Hafizalimi7 wants to merge 3 commits into
makersacademy:mainfrom
Hafizalimi7:main

Conversation

@Hafizalimi7

Copy link
Copy Markdown

No description provided.

@Jenniered Jenniered left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Set up, file base and logic look like a good start to the challenge. Added some comments for suggested additions.

Comment thread app.rb
@object1 = params[:object1]#saving name
erb(:play2)
end

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Could you use the get/post redirect?

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

And sessions?

Comment thread lib/game.rb Outdated
return @computer
end
end

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Clear logic to show a win for the player

Comment thread spec/features/app_spec.rb
visit('/start')
expect(page).to have_content 'Select Rock, Paper Or Scissor ?'
end
# scenario 'shows what computer has picked' do

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I like that you're testing the content you see on the page is as it should be. Do you have a features test for submitting the player name?

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