Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- test_set_depth
- note
- testing: "covers/{MINIMAX_AB_ENGINE}.set_max_depth"
- local
- l_minimax_engine : MINIMAX_ENGINE[STRING, TICTACTOE_STATE, TICTACTOE]
- l_problem : TICTACTOE
- do
- create l_problem.make
- create l_minimax_engine.make_with_depth (l_problem, 10)
- -- assert("Mensaje", l_minimax_engine.max_depth = 10)
- l_minimax_engine.set_max_depth (-5)
- -- print(l_minimax_engine.max_depth)
- assert("OK", l_minimax_engine.max_depth = -5)
- -- assert("OK", l_minimax_engine.max_depth /= -15)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement