-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
bugSomething isn't workingSomething isn't working
Description
what I know:
- suit is suit of the last card
whole game run:
cardDeck
02S 03S 04S 05S 06S 07S 08S 09S 10S 0JS 0QS 0KS 0AS 02H 03H 04H 05H 06H 07H 08H 09H 10H 0JH 0QH 0KH 0AH 02D 03D 04D 05D 06D 07D 08D 09D 10D 0JD 0QD 0KD 0AD 02C 03C 04C 05C 06C 07C 08C 09C 10C 0JC 0QC 0KC 0AC
shuffled deck
07H 0AD 02C 07D 10C 05C 03S 0JS 05S 04S 0QH 09S 0AS 0JD 09C 04H 0QC 0KD 06C 08H 08C 08D 05D 0JC 0AH 03D 04D 0KH 06H 0KC 04C 10H 02S 10S 09H 06D 0AC 10D 08S 0KS 03C 02H 09D 03H 0QD 0QS 0JH 07C 02D 07S 05H 06S
* * * * * *
Please select a game to play or enter Q to quit:
1. Go Fish
1
* * * * * *
You chose to play Go Fish!
-------------------------------
07H 0AD 02C 07D 10C 05C 03S 0JS 05S 04S 0QH 09S 0AS 0JD 09C 04H 0QC 0KD 06C 08H 08C 08D 05D 0JC 0AH 03D 04D 0KH 06H 0KC 04C 10H 02S 10S 09H 06D 0AC 10D 08S 0KS 03C 02H 09D 03H 0QD 0QS 0JH 07C 02D 07S 05H 06S
Please enter your name: cs
user's cards:
07H 02C 10C 03S 05S 0QH 0AS 09C 0QC 06C 08C 05D 0AH 04D 06H 04C 02S 09H 0AC 08S
computer's cards:
0AD 07D 05C 0JS 04S 09S 0JD 04H 0KD 08H 08D 0JC 03D 0KH 0KC 10H 10S 06D 10D 0KS
stock:
03C 02H 09D 03H 0QD 0QS 0JH 07C 02D 07S 05H 06S
**************
* Your turn! *
**************
Your cards:
07H 02C 10C 03S 05S 0QH 0AS 09C 0QC 06C 08C 05D 0AH 04D 06H 04C 02S 09H 0AC 08S
Ask the computer for a card rank: 0Q
Go Fish!
newCard = 03C
stock:
02H 09D 03H 0QD 0QS 0JH 07C 02D 07S 05H 06S
cards:
07H 02C 10C 03S 05S 0QH 0AS 09C 0QC 06C 08C 05D 0AH 04D 06H 04C 02S 09H 0AC 08S 03C
********************
* Computer's turn! *
********************
compCards
0AD 07D 05C 0JS 04S 09S 0JD 04H 0KD 08H 08D 0JC 03D 0KH 0KC 10H 10S 06D 10D 0KS
compAsk = 08
added 08C tp cards, *nP = 21
added 08S tp cards, *nP = 22
toRemove:
08C 08S
books
08
********************
* Computer's turn! *
********************
compCards
0AD 07D 05C 0JS 04S 09S 0JD 04H 0KD 0JC 03D 0KH 0KC 10H 10S 06D 10D 0KS
compAsk = 07S
added 07H tp cards, *nP = 19
toRemove:
07H
********************
* Computer's turn! *
********************
compCards
0AD 07D 05C 0JS 04S 09S 0JD 04H 0KD 0JC 03D 0KH 0KC 10H 10S 06D 10D 0KS 07H
compAsk = 0AC
added 0AS tp cards, *nP = 20
added 0AH tp cards, *nP = 21
added 0AC tp cards, *nP = 22
toRemove:
0AS 0AH 0AC
books
08 0AC
********************
* Computer's turn! *
********************
compCards
07D 05C 0JS 04S 09S 0JD 04H 0KD 0JC 03D 0KH 0KC 10H 10S 06D 10D 0KS 07H
compAsk = 03C
added 03S tp cards, *nP = 19
added 03C tp cards, *nP = 20
toRemove:
03S 03C
********************
* Computer's turn! *
********************
compCards
07D 05C 0JS 04S 09S 0JD 04H 0KD 0JC 03D 0KH 0KC 10H 10S 06D 10D 0KS 07H 03S 03C
compAsk = 03C
Computer must Go Fish!
newCard = 02H
stock:
09D 03H 0QD 0QS 0JH 07C 02D 07S 05H 06S
cards:
07D 05C 0JS 04S 09S 0JD 04H 0KD 0JC 03D 0KH 0KC 10H 10S 06D 10D 0KS 07H 03S 03C 02H
**************
* Your turn! *
**************
Your cards:
02C 10C 05S 0QH 09C 0QC 06C 05D 04D 06H 04C 02S 09H
Ask the computer for a card rank: 07
Ask the computer for a card rank: 05
added 05C tp cards, *nP = 14
toRemove:
05C
**************
* Your turn! *
**************
Your cards:
02C 10C 05S 0QH 09C 0QC 06C 05D 04D 06H 04C 02S 09H 05C
Ask the computer for a card rank: 0J
Ask the computer for a card rank: 04
added 04S tp cards, *nP = 15
added 04H tp cards, *nP = 16
toRemove:
04S 04H
books
04H
**************
* Your turn! *
**************
Your cards:
02C 10C 05S 0QH 09C 0QC 06C 05D 06H 02S 09H 05C
Ask the computer for a card rank: 09
added 09S tp cards, *nP = 13
toRemove:
09S
**************
* Your turn! *
**************
Your cards:
02C 10C 05S 0QH 09C 0QC 06C 05D 06H 02S 09H 05C 09S
Ask the computer for a card rank: 0K
Ask the computer for a card rank: 03
Ask the computer for a card rank: 10
added 10H tp cards, *nP = 14
added 10S tp cards, *nP = 15
added 10D tp cards, *nP = 16
toRemove:
10H 10S 10D
books
04H 10
**************
* Your turn! *
**************
Your cards:
02C 05S 0QH 09C 0QC 06C 05D 06H 02S 09H 05C 09S
Ask the computer for a card rank: 02
added 02H tp cards, *nP = 13
toRemove:
02H
**************
* Your turn! *
**************
Your cards:
02C 05S 0QH 09C 0QC 06C 05D 06H 02S 09H 05C 09S 02H
Ask the computer for a card rank: 09
Go Fish!
newCard = 09D
stock:
03H 0QD 0QS 0JH 07C 02D 07S 05H 06S
cards:
02C 05S 0QH 09C 0QC 06C 05D 06H 02S 09H 05C 09S 02H 09D
books
04H 10 09D
**************
* Your turn! *
**************
Your cards:
02C 05S 0QH 0QC 06C 05D 06H 02S 05C 02H
Ask the computer for a card rank: 06
added 06D tp cards, *nP = 11
toRemove:
06D
**************
* Your turn! *
**************
Your cards:
02C 05S 0QH 0QC 06C 05D 06H 02S 05C 02H 06D
Ask the computer for a card rank: 0Q
Go Fish!
newCard = 03H
stock:
0QD 0QS 0JH 07C 02D 07S 05H 06S
cards:
02C 05S 0QH 0QC 06C 05D 06H 02S 05C 02H 06D 03H
********************
* Computer's turn! *
********************
compCards
07D 0JS 0JD 0KD 0JC 03D 0KH 0KC 0KS 07H 03S 03C
compAsk = 0K
Computer must Go Fish!
newCard = 0QD
stock:
0QS 0JH 07C 02D 07S 05H 06S
cards:
07D 0JS 0JD 0KD 0JC 03D 0KH 0KC 0KS 07H 03S 03C 0QD
**************
* Your turn! *
**************
Your cards:
02C 05S 0QH 0QC 06C 05D 06H 02S 05C 02H 06D 03H
Ask the computer for a card rank: 0Q
added 0QD tp cards, *nP = 13
toRemove:
0QD
**************
* Your turn! *
**************
Your cards:
02C 05S 0QH 0QC 06C 05D 06H 02S 05C 02H 06D 03H 0QD
Ask the computer for a card rank: 03
added 03D tp cards, *nP = 14
added 03S tp cards, *nP = 15
added 03C tp cards, *nP = 16
toRemove:
03D 03S 03C
books
04H 10 09D 03
**************
* Your turn! *
**************
Your cards:
02C 05S 0QH 0QC 06C 05D 06H 02S 05C 02H 06D 0QD
Ask the computer for a card rank: 06
Go Fish!
newCard = 0QS
stock:
0JH 07C 02D 07S 05H 06S
cards:
02C 05S 0QH 0QC 06C 05D 06H 02S 05C 02H 06D 0QD 0QS
books
04H 10 09D 03 0QS
********************
* Computer's turn! *
********************
compCards
07D 0JS 0JD 0KD 0JC 0KH 0KC 0KS 07H
compAsk = 0J
Computer must Go Fish!
newCard = 0JH
stock:
07C 02D 07S 05H 06S
cards:
07D 0JS 0JD 0KD 0JC 0KH 0KC 0KS 07H 0JH
books
08 0AC 0J
********************
* Computer's turn! *
********************
compCards
07D 0KD 0KH 0KC 0KS 07H
compAsk = 07
Computer must Go Fish!
newCard = 07C
stock:
02D 07S 05H 06S
cards:
07D 0KD 0KH 0KC 0KS 07H 07C
********************
* Computer's turn! *
********************
compCards
07D 0KD 0KH 0KC 0KS 07H 07C
compAsk = 0K
Computer must Go Fish!
newCard = 02D
stock:
07S 05H 06S
cards:
07D 0KD 0KH 0KC 0KS 07H 07C 02D
**************
* Your turn! *
**************
Your cards:
02C 05S 06C 05D 06H 02S 05C 02H 06D
Ask the computer for a card rank: 02
added 02D tp cards, *nP = 10
toRemove:
02D
books
04H 10 09D 03 0QS 02
**************
* Your turn! *
**************
Your cards:
05S 06C 05D 06H 05C 06D
Ask the computer for a card rank: 05
Go Fish!
newCard = 07S
stock:
05H 06S
cards:
05S 06C 05D 06H 05C 06D 07S
********************
* Computer's turn! *
********************
compCards
07D 0KD 0KH 0KC 0KS 07H 07C
compAsk = 0K
Computer must Go Fish!
newCard = 05H
stock:
06S
cards:
07D 0KD 0KH 0KC 0KS 07H 07C 05H
**************
* Your turn! *
**************
Your cards:
05S 06C 05D 06H 05C 06D 07S
Ask the computer for a card rank: 07
added 07D tp cards, *nP = 8
added 07H tp cards, *nP = 9
added 07C tp cards, *nP = 10
toRemove:
07D 07H 07C
books
04H 10 09D 03 0QS 02 07
**************
* Your turn! *
**************
Your cards:
05S 06C 05D 06H 05C 06D
Ask the computer for a card rank: 05
added 05H tp cards, *nP = 7
toRemove:
05H
books
04H 10 09D 03 0QS 02 07 05H
**************
* Your turn! *
**************
Your cards:
06C 06H 06D
Ask the computer for a card rank: 06
Go Fish!
newCard = 06S
stock:
cards:
06C 06H 06D 06S
books
04H 10 09D 03 0QS 02 07 05H 06S
**************
* Your turn! *
**************
Your cards:
Ask the computer for a card rank:
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working