MCPcopy Create free account
hub / github.com/TheAlgorithms/Rust / minimax

Function minimax

src/graph/depth_first_search_tic_tac_toe.rs:195–260  ·  view source on GitHub ↗

Minimize the actions of the opponent while maximizing the game state of the current player.

(side: Players, board: &[Vec<Players>])

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 6

mainFunction · 0.85
win_state_checkFunction · 0.85
win_state_check2Function · 0.85
block_win_moveFunction · 0.85
block_moveFunction · 0.85
expected_lossFunction · 0.85

Calls 4

win_checkFunction · 0.85
available_positionsFunction · 0.85
append_playactionFunction · 0.85
is_emptyMethod · 0.45

Tested by 5

win_state_checkFunction · 0.68
win_state_check2Function · 0.68
block_win_moveFunction · 0.68
block_moveFunction · 0.68
expected_lossFunction · 0.68