Some tests
Don't make 100+ submissions like I did.
Just check these tests to make sure you correctly understand the problem description.
Test #1:
10 20 0
5 3 4
turn
1 100
2 100
3 100
4 100
5 100
6
1 calls 20
2 calls 20
3 calls 20
4 calls 10
5 checks
dealing flop
80 80 80 80 80
answer:
6
4 checks
5 checks
1 checks
2 checks
3 checks
dealing turn
Test #2:
10 20 10
5 3 3
turn
1 11
2 12
3 100
4 100
5 100
7
1 calls 1
2 calls 2
3 raises 10 to 30
4 folds
5 calls 10
dealing flop
5 checks
0 0 50 80 45
answer:
4
3 bets 10
5 calls 10
dealing turn
5 bets 5
Test #3 (this is what 10th test about):
10 20 0
5 3 4
flop
1 200
2 100
3 100
4 200
5 100
3
1 calls 20
2 calls 20
3 raises 20 to 100
100 80 0 100 80
answer:
5
4 calls 90
5 folds
1 calls 80
2 folds
dealing flop
Test #4: (this is what 32th test about - pay attention to the order of players' turns)
10 20 0
2 2 1
river
1 1000
2 1000
10
2 calls 10
1 checks
dealing flop
1 bets 20
2 raises 30 to 50
1 calls 30
dealing turn
1 checks
2 checks
dealing river
900 830
answer:
2
1 bets 30
2 raises 70 to 100
Test #5: (This is what 33th test about, 0 - is the wrong answer!!!!)
10 20 0
3 3 3
flop
1 100
2 100
3 100
0
80 80 80
answer:
6
3 calls 20
1 calls 10
2 checks
dealing flop
1 checks
2 checks
Good luck!!!
Edited by author 12.06.2016 14:04
Edited by author 13.06.2016 20:51
Re: Some tests
Posted by
Al.Cash 20 Jun 2016 20:54
Correct me if I'm wrong, but isn't test #2 invalid because it has one more possible answer?
5
3 checks
dealing turn
5 checks
3 bets 10
5 raises 5 to 15
Re: Some tests
This answer isn't possible because of this:
"If that is the first time when module takes turn then it should restore all players’ turns with all data it has. Otherwise module also has the information about all players’ turns before the previous bot turn".
It means that you must have not more than one bot's turn in the answer. At least if M > 0.
Re: Some tests
"It means that you must have not more than one bot's turn in the answer. At least if
M > 0."
Is there situation when M=0?
Re: Some tests
Posted by
Al.Cash 25 Jun 2016 03:29
Yes, first sample for example. But looks like there's always not more than one bot's turn.
Re: Some tests
Here's some modification of my 5th test:
10 20 0
3 3 3
river
1 100
2 100
3 100
0
80 80 80
It seems to be correct, and the answer has > 1 bot's turn:
14
3 calls 20
1 calls 10
2 checks
dealing flop
1 checks
2 checks
3 checks
dealing turn
1 checks
2 checks
3 checks
dealing river
1 checks
2 checks
Re: Some tests
Posted by
Al.Cash 27 Jun 2016 14:25
I checked and there are no such tests. "If that is the first time when module takes turn then it should restore all players’ turns with all data it has." - probably this means it's the first bot turn, otherwise the module would be called before.
Re: Some tests
"Yes, first sample for example. But looks like there's always not more than one bot's turn."
I mean M is number of all turns, not only bot's.
Also I'd like to ask another question: in all tests here bot's turn occupies first line of output, so is there any test where bot's turn is not in first line, or it contradicts to the condition?
Re: Some tests
Yes. See 1st sample test.
Re: Some tests
And what about this test:
10 20 2
5 3 4
flop
PhilIvey 500
TomDwan 500
ViktorBlom 500
Grobot 500
Ziigmund 500
6
PhilIvey folds
TomDwan calls 20
ViktorBlom raises 40 to 60
Grobot calls 50
Ziigmund folds
TomDwan folds
498 478 338 438 478
ans1:
1
dealing flop
ans2:
3
dealing flop
Grobot checks
VictorBlom bets 100
Which answer is right? Thanks in advance.
Edited by author 16.04.2017 17:27
Re: Some tests
for test #2 answer, wouldn't:
2
3 bets 10
5 raises 5 to 15
be correct too?
and for test #3 raises
shouldn't it be
3 raises 80 to 100
Thx in advance
EDIT: Sorry, i misundestood
Edited by author 02.12.2019 06:28
Edited by author 02.12.2019 06:28
Re: Some tests
Edited by author 21.02.2020 17:41