You are not logged on | Login | Register  
The usefull procedures for robots contribution thread

 
autonomy

A usefull one for capital games:


proc chance_player_can_start_before_enemy {player enemy} {

set numberOfPlayers [llength [player list]]

if {$player < $enemy} {

set player [expr $player + $numberOfPlayers]
}

return [expr [expr $player - $enemy + 0.0] / [expr $numberOfPlayers + 0.0]]
}


  Reply to this discussion

Copernica is a software for e-mail marketing, profile enrichment, websites and short text messages campaigns.