Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hafiz Rps version #2134

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Hafiz Rps version #2134

wants to merge 3 commits into from

Conversation

Hafizalimi7
Copy link

No description provided.

Copy link

@Jenniered Jenniered left a comment

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.

@object1 = params[:object1]#saving name
erb(:play2)
end

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?

Choose a reason for hiding this comment

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

And sessions?

lib/game.rb Outdated
return @computer
end
end

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

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

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.

None yet

2 participants