A-Lounsbury / pysimultaneous

A class for handling simultaneous games with any number of players
0 stars 0 forks source link

Test/Verify outputs for the printKMatrix function #17

Closed A-Lounsbury closed 3 months ago

A-Lounsbury commented 3 months ago

This test

iesds = [
    [
        [[13, 3], [1, 4], [7, 3]],
        [[4, 1], [3, 3], [6, 2]],
        [[-1, 9], [2, 8], [8, -1]]
    ]
]
G = SimGame(2)
G.enterData(2, [3, 3], iesds)
G.printKMatrix()

outputs

(s_0, s_0) (s_0, s_1) (s_0, s_1) (s_0, s_1)
(s_0, s_0) (s_0, s_1) (s_0, s_1) (s_0, s_1)
(s_1, s_0) (s_1, s_1) (s_1, s_1) (s_1, s_1)
(s_1, s_0) (s_1, s_1) (s_1, s_1) (s_1, s_1)

Verify that this is correct.

A-Lounsbury commented 3 months ago

We no longer need to do this since we have this test

krmodel = [
    [
        [[2, 12], [5, 6], [9, 0]],
        [[0, 24], [19, 5], [10, 10]],
        [[1, 3], [7, 5], [5, 25]],
    ]
]

G = SimGame(2)
G.enterData(2, [3, 3], krmodel)
G.print()
print()
G.printKMatrix()

worked out on paper from the course.