supermihi / karlchencloud

Client/server implementation of Doppelkopf
Apache License 2.0
4 stars 0 forks source link

Random #16

Closed m8mble closed 3 years ago

m8mble commented 3 years ago

Ensure deterministic game replay.

eikel commented 3 years ago

Tests are failing. I think you forget to adapt some test code.

server/room_test.go:13:29: not enough arguments in call to r.CreateTable
    have (string, nil, nil)
    want (string, *string, *string, int64)
server/room_test.go:25:26: cannot use 123 (type int) as type *rand.Rand in argument to game.DealCards
server/table_test.go:10:19: not enough arguments in call to NewTable
    have (string, nil, nil)
    want (string, *string, *string, int64)