/dports/games/freeciv/freeciv-2.6.6/ai/ |
H A D | difficulty.c | 53 bv_handicap handicap; in handicap_of_skill_level() local 57 BV_CLR_ALL(handicap); in handicap_of_skill_level() 61 BV_SET(handicap, H_AWAY); in handicap_of_skill_level() 62 BV_SET(handicap, H_FOG); in handicap_of_skill_level() 63 BV_SET(handicap, H_MAP); in handicap_of_skill_level() 64 BV_SET(handicap, H_RATES); in handicap_of_skill_level() 66 BV_SET(handicap, H_HUTS); in handicap_of_skill_level() 73 BV_SET(handicap, H_HUTS); in handicap_of_skill_level() 87 BV_SET(handicap, H_HUTS); in handicap_of_skill_level() 100 BV_SET(handicap, H_HUTS); in handicap_of_skill_level() [all …]
|
/dports/games/freeciv-nox11/freeciv-2.6.6/ai/ |
H A D | difficulty.c | 53 bv_handicap handicap; in handicap_of_skill_level() local 57 BV_CLR_ALL(handicap); in handicap_of_skill_level() 61 BV_SET(handicap, H_AWAY); in handicap_of_skill_level() 62 BV_SET(handicap, H_FOG); in handicap_of_skill_level() 63 BV_SET(handicap, H_MAP); in handicap_of_skill_level() 64 BV_SET(handicap, H_RATES); in handicap_of_skill_level() 66 BV_SET(handicap, H_HUTS); in handicap_of_skill_level() 73 BV_SET(handicap, H_HUTS); in handicap_of_skill_level() 87 BV_SET(handicap, H_HUTS); in handicap_of_skill_level() 100 BV_SET(handicap, H_HUTS); in handicap_of_skill_level() [all …]
|
/dports/games/gnugo/gnugo-3.8/interface/gtp_examples/ |
H A D | twogtp.py | 150 def handicap(self, handicap, handicap_type): argument 221 self.handicap = handicap 284 handicap = self.handicap 294 if handicap > 1: 313 self.handicap = handicap 337 if self.handicap < 2: 340 self.handicap_stones = self.blackplayer.handicap(self.handicap, self.handicap_type) 455 self.handicap = handicap 576 handicap = 0 variable 643 handicap = int(value) variable [all …]
|
H A D | twogtp | 185 sub handicap { 187 my $handicap = shift; 196 my $handicap = shift; 305 my $handicap = $self->handicap; 311 if ($handicap > 1) { 336 my $handicap = $self->handicap; 355 if ($handicap < 2) { 470 $game->handicap($self->handicap); 498 my $handicap = 0; 535 if ($handicap > 0) { [all …]
|
H A D | twogtp.pike | 297 if (handicap == 0) 707 if (handicap) 1044 if (++handicap == 1) 1045 handicap = 2; 1050 if (handicap == 0) { 1051 handicap = 2; 1056 handicap); 1060 handicap = 0; 1062 handicap); 1338 int handicap = 0; [all …]
|
/dports/games/leela-zero/leela-zero-0.17/src/ |
H A D | GameState.cpp | 186 if (!valid_handicap(handicap)) { in set_fixed_handicap() 195 if (handicap >= 2) { in set_fixed_handicap() 200 if (handicap >= 3) { in set_fixed_handicap() 204 if (handicap >= 4) { in set_fixed_handicap() 208 if (handicap >= 5 && handicap % 2 == 1) { in set_fixed_handicap() 212 if (handicap >= 6) { in set_fixed_handicap() 217 if (handicap >= 8) { in set_fixed_handicap() 226 set_handicap(handicap); in set_fixed_handicap() 266 if (handicap < 2 || handicap > 9) { in valid_handicap() 272 if (board_size == 7 && handicap > 4) { in valid_handicap() [all …]
|
/dports/games/xbubble/xbubble-0.5.8/src/ |
H A D | xbubble.c | 85 ruleset.max_fire_delay = handicap[0]; in play_single_player_game() 99 void play_challenge_game( int *handicap ) { in play_challenge_game() argument 106 ruleset.max_fire_delay = handicap[0]; in play_challenge_game() 129 ruleset[0].max_fire_delay = handicap[0]; in play_match() 130 ruleset[1].max_fire_delay = handicap[1]; in play_match() 179 int handicap[2]; in play_xbubble() local 183 handicap[0] = level_handicap(NORMAL); in play_xbubble() 184 handicap[1] = level_handicap(NORMAL); in play_xbubble() 192 handicap[0] = level_handicap( choice[0] ); in play_xbubble() 193 play_single_player_game( handicap ); in play_xbubble() [all …]
|
/dports/games/gnugo/gnugo-3.8/engine/ |
H A D | interface.c | 177 return handicap; in gnugo_sethand() 212 gameinfo->handicap = 0; in gameinfo_clear() 229 printf("Handicap %d\n", gameinfo->handicap); in gameinfo_print() 273 handicap = 0; in gameinfo_play_sgftree_rot() 274 if (sgfGetIntProperty(tree->root, "HA", &handicap) && handicap > 1) in gameinfo_play_sgftree_rot() 276 gameinfo->handicap = handicap; in gameinfo_play_sgftree_rot() 278 if (handicap > bs * bs - 1 || handicap < 0) { in gameinfo_play_sgftree_rot() 280 handicap); in gameinfo_play_sgftree_rot() 287 if (gameinfo->handicap == 0) in gameinfo_play_sgftree_rot() 349 place_fixed_handicap(gameinfo->handicap); in gameinfo_play_sgftree_rot() [all …]
|
H A D | handicap.c | 156 handicap = 0; in place_fixed_handicap() 171 handicap = max_handicap; in place_fixed_handicap() 173 handicap = desired_handicap; in place_fixed_handicap() 175 remaining_stones = handicap; in place_fixed_handicap() 204 return handicap; in place_fixed_handicap() 237 handicap = 0; in place_free_handicap() 283 handicap = desired_handicap - remaining_handicap_stones; in place_free_handicap() 291 return handicap; in place_free_handicap()
|
/dports/net/p5-IP-Country/IP-Country-2.28/dbmScripts/ |
H A D | ipauth_loader.pl | 135 …t_raw($one_ip_decimal, 2 ** ($one_mask_decimal + 1), $range{$one}->{cc}, $range{$one}->{handicap}); 163 ($range{$one}->{handicap} eq $range{$two}->{handicap})){ 170 …t_raw($one_ip_decimal, 2 ** ($one_mask_decimal + 1), $range{$one}->{cc}, $range{$one}->{handicap}); 216 my $larger_handicap = $range{$larger}->{handicap}; 217 my $smaller_handicap = $range{$smaller}->{handicap}; 284 my ($ip_decimal,$size,$cc,$handicap) = @_; 291 add_range($ip_packed,$mask_packed[$max_mask],$cc,$handicap); 299 my ($ip_packed, $mask_packed, $cc, $handicap) = @_; 303 if ($existing->{handicap} > $handicap){ 304 $range{$ip_packed . $mask_packed} = {cc => $cc, handicap => $handicap}; [all …]
|
H A D | ipcc_loader.pl | 135 …t_raw($one_ip_decimal, 2 ** ($one_mask_decimal + 1), $range{$one}->{cc}, $range{$one}->{handicap}); 163 ($range{$one}->{handicap} eq $range{$two}->{handicap})){ 170 …t_raw($one_ip_decimal, 2 ** ($one_mask_decimal + 1), $range{$one}->{cc}, $range{$one}->{handicap}); 216 my $larger_handicap = $range{$larger}->{handicap}; 217 my $smaller_handicap = $range{$smaller}->{handicap}; 284 my ($ip_decimal,$size,$cc,$handicap) = @_; 291 add_range($ip_packed,$mask_packed[$max_mask],$cc,$handicap); 299 my ($ip_packed, $mask_packed, $cc, $handicap) = @_; 303 if ($existing->{handicap} > $handicap){ 304 $range{$ip_packed . $mask_packed} = {cc => $cc, handicap => $handicap}; [all …]
|
/dports/games/gnugo/gnugo-3.8/interface/ |
H A D | play_gmp.c | 61 sgftreeCreateHeaderNode(&sgftree, board_size, komi, gameinfo->handicap); in play_gmp() 73 if (gameinfo->handicap == 0) in play_gmp() 87 gmp_startGame(ge, board_size, gameinfo->handicap, in play_gmp() 105 gameinfo->handicap = gmp_handicap(ge); in play_gmp() 122 gameinfo->handicap, komi); in play_gmp() 124 if (gameinfo->handicap) in play_gmp() 140 gameinfo->handicap, get_level(), chinese_rules); in play_gmp() 141 gameinfo->handicap = gnugo_sethand(gameinfo->handicap, sgftree.root); in play_gmp() 142 sgfOverwritePropertyInt(sgftree.root, "HA", gameinfo->handicap); in play_gmp()
|
/dports/games/lizzie/lizzie-0.6-105-gd0e7040/src/main/java/featurecat/lizzie/analysis/ |
H A D | GameInfo.java | 14 private int handicap = 0; field in GameInfo 49 return handicap; in getHandicap() 52 public void setHandicap(int handicap) { in setHandicap() argument 53 this.handicap = handicap; in setHandicap()
|
/dports/games/gnugo/gnugo-3.8/regression/ |
H A D | ninestones.tst | 239 loadsgf games/9handicap.sgf 24 243 loadsgf games/9handicap.sgf 34 247 loadsgf games/9handicap.sgf 40 251 loadsgf games/9handicap.sgf 56 255 loadsgf games/9handicap.sgf 82 259 loadsgf games/9handicap.sgf 86 263 loadsgf games/9handicap.sgf 136 267 loadsgf games/9handicap.sgf 214 271 loadsgf games/9handicap.sgf 274 275 loadsgf games/9handicap.sgf 278 [all …]
|
/dports/games/ioquake3/ioquake3-1.36/code/game/ |
H A D | g_items.c | 124 float handicap; in Pickup_PersistantPowerup() local 135 if( handicap<=0.0f || handicap>100.0f) { in Pickup_PersistantPowerup() 136 handicap = 100.0f; in Pickup_PersistantPowerup() 152 if( handicap<=0.0f || handicap>100.0f) { in Pickup_PersistantPowerup() 153 handicap = 100.0f; in Pickup_PersistantPowerup() 163 if( handicap<=0.0f || handicap>100.0f) { in Pickup_PersistantPowerup() 164 handicap = 100.0f; in Pickup_PersistantPowerup() 172 if( handicap<=0.0f || handicap>100.0f) { in Pickup_PersistantPowerup() 173 handicap = 100.0f; in Pickup_PersistantPowerup() 182 if( handicap<=0.0f || handicap>100.0f) { in Pickup_PersistantPowerup() [all …]
|
/dports/games/ioquake3-server/ioquake3-1.36/code/game/ |
H A D | g_items.c | 124 float handicap; in Pickup_PersistantPowerup() local 135 if( handicap<=0.0f || handicap>100.0f) { in Pickup_PersistantPowerup() 136 handicap = 100.0f; in Pickup_PersistantPowerup() 152 if( handicap<=0.0f || handicap>100.0f) { in Pickup_PersistantPowerup() 153 handicap = 100.0f; in Pickup_PersistantPowerup() 163 if( handicap<=0.0f || handicap>100.0f) { in Pickup_PersistantPowerup() 164 handicap = 100.0f; in Pickup_PersistantPowerup() 172 if( handicap<=0.0f || handicap>100.0f) { in Pickup_PersistantPowerup() 173 handicap = 100.0f; in Pickup_PersistantPowerup() 182 if( handicap<=0.0f || handicap>100.0f) { in Pickup_PersistantPowerup() [all …]
|
/dports/games/evq3/evq3/code/game/ |
H A D | g_items.c | 124 float handicap; in Pickup_PersistantPowerup() local 135 if( handicap<=0.0f || handicap>100.0f) { in Pickup_PersistantPowerup() 136 handicap = 100.0f; in Pickup_PersistantPowerup() 152 if( handicap<=0.0f || handicap>100.0f) { in Pickup_PersistantPowerup() 153 handicap = 100.0f; in Pickup_PersistantPowerup() 163 if( handicap<=0.0f || handicap>100.0f) { in Pickup_PersistantPowerup() 164 handicap = 100.0f; in Pickup_PersistantPowerup() 172 if( handicap<=0.0f || handicap>100.0f) { in Pickup_PersistantPowerup() 173 handicap = 100.0f; in Pickup_PersistantPowerup() 182 if( handicap<=0.0f || handicap>100.0f) { in Pickup_PersistantPowerup() [all …]
|
/dports/games/worldofpadman/worldofpadman-1.2.20080621/code/game/ |
H A D | g_items.c | 124 float handicap; in Pickup_PersistantPowerup() local 135 if( handicap<=0.0f || handicap>100.0f) { in Pickup_PersistantPowerup() 136 handicap = 100.0f; in Pickup_PersistantPowerup() 152 if( handicap<=0.0f || handicap>100.0f) { in Pickup_PersistantPowerup() 153 handicap = 100.0f; in Pickup_PersistantPowerup() 163 if( handicap<=0.0f || handicap>100.0f) { in Pickup_PersistantPowerup() 164 handicap = 100.0f; in Pickup_PersistantPowerup() 172 if( handicap<=0.0f || handicap>100.0f) { in Pickup_PersistantPowerup() 173 handicap = 100.0f; in Pickup_PersistantPowerup() 182 if( handicap<=0.0f || handicap>100.0f) { in Pickup_PersistantPowerup() [all …]
|
/dports/games/supertuxkart/SuperTuxKart-1.2-src/src/karts/ |
H A D | abstract_kart.cpp | 42 HandicapLevel handicap, in AbstractKart() argument 47 loadKartProperties(ident, handicap, ri); in AbstractKart() 78 HandicapLevel handicap, in loadKartProperties() argument 103 m_kart_properties->copyForPlayer(kp, handicap); in loadKartProperties() 107 m_handicap = handicap; in loadKartProperties() 131 HandicapLevel handicap, in changeKart() argument 138 loadKartProperties(new_ident, handicap, ri); in changeKart()
|
/dports/games/cgoban/cgoban-1.9.14/src/ |
H A D | arena.c | 21 int handicap); 32 int size, float komi, int handicap) { in arena() argument 46 match(&arena, i & 1, size, komi, handicap); in arena() 53 int handicap) { in match() argument 58 arena->game = goGame_create(size, goRules_nz, handicap, komi, in match() 61 size, handicap, komi, TRUE, TRUE); in match() 63 size, handicap, komi, TRUE, FALSE); in match()
|
H A D | sgfPlay.c | 28 static void processMoves(SgfElem *me, GoGame *game, int *handicap, 40 int handicap = 0, i, currentNode = 0; in sgf_play() local 76 processMoves(me, game, &handicap, &handicapPlayed, NULL); in sgf_play() 78 processMoves(me, game, &handicap, &handicapPlayed, pic->cg); in sgf_play() 100 if (!handicapPlayed && handicap && !game->passive) { in sgf_play() 129 static void processMoves(SgfElem *me, GoGame *game, int *handicap, in processMoves() argument 138 *handicap = me->iVal; in processMoves() 148 if (!*handicap || (goBoard_stone(game->board, i) != goStone_black)) { in processMoves() 166 if (*handicap) in processMoves() 167 --*handicap; in processMoves()
|
/dports/games/ioquake3/ioquake3-1.36/code/q3_ui/ |
H A D | ui_playersettings.c | 58 menulist_s handicap; member 316 s_playersettings.handicap.curvalue = 20 - h / 5; in PlayerSettings_SetMenuItems() 401 s_playersettings.handicap.generic.type = MTYPE_SPINCONTROL; in PlayerSettings_MenuInit() 402 s_playersettings.handicap.generic.flags = QMF_NODEFAULTINIT; in PlayerSettings_MenuInit() 403 s_playersettings.handicap.generic.id = ID_HANDICAP; in PlayerSettings_MenuInit() 405 s_playersettings.handicap.generic.x = 192; in PlayerSettings_MenuInit() 406 s_playersettings.handicap.generic.y = y; in PlayerSettings_MenuInit() 407 s_playersettings.handicap.generic.left = 192 - 8; in PlayerSettings_MenuInit() 408 s_playersettings.handicap.generic.top = y - 8; in PlayerSettings_MenuInit() 409 s_playersettings.handicap.generic.right = 192 + 200; in PlayerSettings_MenuInit() [all …]
|
/dports/games/ioquake3-server/ioquake3-1.36/code/q3_ui/ |
H A D | ui_playersettings.c | 58 menulist_s handicap; member 316 s_playersettings.handicap.curvalue = 20 - h / 5; in PlayerSettings_SetMenuItems() 401 s_playersettings.handicap.generic.type = MTYPE_SPINCONTROL; in PlayerSettings_MenuInit() 402 s_playersettings.handicap.generic.flags = QMF_NODEFAULTINIT; in PlayerSettings_MenuInit() 403 s_playersettings.handicap.generic.id = ID_HANDICAP; in PlayerSettings_MenuInit() 405 s_playersettings.handicap.generic.x = 192; in PlayerSettings_MenuInit() 406 s_playersettings.handicap.generic.y = y; in PlayerSettings_MenuInit() 407 s_playersettings.handicap.generic.left = 192 - 8; in PlayerSettings_MenuInit() 408 s_playersettings.handicap.generic.top = y - 8; in PlayerSettings_MenuInit() 409 s_playersettings.handicap.generic.right = 192 + 200; in PlayerSettings_MenuInit() [all …]
|
/dports/games/worldofpadman/worldofpadman-1.2.20080621/code/q3_ui/ |
H A D | ui_playersettings.c | 58 menulist_s handicap; member 316 s_playersettings.handicap.curvalue = 20 - h / 5; in PlayerSettings_SetMenuItems() 401 s_playersettings.handicap.generic.type = MTYPE_SPINCONTROL; in PlayerSettings_MenuInit() 402 s_playersettings.handicap.generic.flags = QMF_NODEFAULTINIT; in PlayerSettings_MenuInit() 403 s_playersettings.handicap.generic.id = ID_HANDICAP; in PlayerSettings_MenuInit() 405 s_playersettings.handicap.generic.x = 192; in PlayerSettings_MenuInit() 406 s_playersettings.handicap.generic.y = y; in PlayerSettings_MenuInit() 407 s_playersettings.handicap.generic.left = 192 - 8; in PlayerSettings_MenuInit() 408 s_playersettings.handicap.generic.top = y - 8; in PlayerSettings_MenuInit() 409 s_playersettings.handicap.generic.right = 192 + 200; in PlayerSettings_MenuInit() [all …]
|
/dports/games/evq3/evq3/code/q3_ui/ |
H A D | ui_playersettings.c | 58 menulist_s handicap; member 316 s_playersettings.handicap.curvalue = 20 - h / 5; in PlayerSettings_SetMenuItems() 401 s_playersettings.handicap.generic.type = MTYPE_SPINCONTROL; in PlayerSettings_MenuInit() 402 s_playersettings.handicap.generic.flags = QMF_NODEFAULTINIT; in PlayerSettings_MenuInit() 403 s_playersettings.handicap.generic.id = ID_HANDICAP; in PlayerSettings_MenuInit() 405 s_playersettings.handicap.generic.x = 192; in PlayerSettings_MenuInit() 406 s_playersettings.handicap.generic.y = y; in PlayerSettings_MenuInit() 407 s_playersettings.handicap.generic.left = 192 - 8; in PlayerSettings_MenuInit() 408 s_playersettings.handicap.generic.top = y - 8; in PlayerSettings_MenuInit() 409 s_playersettings.handicap.generic.right = 192 + 200; in PlayerSettings_MenuInit() [all …]
|