Bot players feature ideas
This commit is contained in:
commit
e49dfaa4e9
15
README.md
15
README.md
@ -10,6 +10,10 @@ TODO
|
|||||||
|
|
||||||
- flexbox layout: http://codepen.io/anon/pen/ojJOjq
|
- flexbox layout: http://codepen.io/anon/pen/ojJOjq
|
||||||
|
|
||||||
|
- bot players
|
||||||
|
|
||||||
|
- flexbox layout: http://codepen.io/anon/pen/ojJOjq (started)
|
||||||
|
|
||||||
- graphics
|
- graphics
|
||||||
|
|
||||||
- Remove PlayToBeat model and table.
|
- Remove PlayToBeat model and table.
|
||||||
@ -62,6 +66,17 @@ Start new game with existing players
|
|||||||
- In game currencies
|
- In game currencies
|
||||||
- Tournaments
|
- Tournaments
|
||||||
|
|
||||||
|
## Bot players
|
||||||
|
|
||||||
|
Essential:
|
||||||
|
|
||||||
|
- Play valid hands
|
||||||
|
- Pass
|
||||||
|
|
||||||
|
Nice to have:
|
||||||
|
|
||||||
|
- Skill level setting
|
||||||
|
- AI based on skill level
|
||||||
|
|
||||||
ReactJS front-end
|
ReactJS front-end
|
||||||
|
|
||||||
|
|||||||
21
spec/features/bots/add_bot_players_spec.rb
Normal file
21
spec/features/bots/add_bot_players_spec.rb
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
# Feature: Add bot to table
|
||||||
|
# As a user
|
||||||
|
# I want to add a bot to a table
|
||||||
|
# So I can play against the computer
|
||||||
|
feature 'Add bot', type: :feature, js: true do
|
||||||
|
# Scenario: User can add a bot if there is room at the table
|
||||||
|
# Given I can edit the table
|
||||||
|
# When I see the table with an empty seat
|
||||||
|
# Then I see a button to add a bot
|
||||||
|
scenario 'user can add a bot if the table is not full' do
|
||||||
|
skip "To be implemented"
|
||||||
|
#signin('test@example.com', 'please123')
|
||||||
|
#create table
|
||||||
|
#visit table_path @table
|
||||||
|
#join table
|
||||||
|
#expect(page).to have_button('Add bot')
|
||||||
|
#click_button 'Add bot'
|
||||||
|
#expect table players +=1
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
||||||
Loading…
x
Reference in New Issue
Block a user