Home
last modified time | relevance | path

Searched refs:possible_moves (Results 1 – 20 of 20) sorted by relevance

/dports/games/blokish/blokish/src/
H A Dai.cpp54 possible_moves.clear(); in Reset()
92 if(possible_moves.size() == 0) in Step()
95 …_FILE__ << ", " << __LINE__ << ": " << "possible_moves.size() = " << possible_moves.size() << "\n"; in Step()
101 std::sort(possible_moves.begin(), possible_moves.end()); in Step()
102 int maxSelection = std::min(int(numWithMaxRating * 1.5), int(possible_moves.size())); in Step()
103 int selection = possible_moves.size() - 1 - (rand() % maxSelection); in Step()
104 move = possible_moves[selection]; in Step()
157 possible_moves.push_back(possible); in Try()
H A Dai.h84 std::vector<BlokishBoard::Move> possible_moves; variable
/dports/games/frogatto/frogatto-1.3.1/modules/vgi/data/objects/
H A Dcube2_playable.cfg33 set(tmp.possible_moves, path_cost_search(graph, snap_pt(x,y), consts.search_radius))
41 … set(tmp.possible_moves, path_cost_search(vars.level_graph, snap_pt(x,y), consts.search_radius)),
45 map(tmp.possible_moves, v,
52 set(tmp.possible_moves,null)]
57 on_draw: "if(tmp.possible_moves and tmp.moving=false,
58 map(tmp.possible_moves, v,
/dports/games/freecell-solver/freecell-solver-6.2.0/patsolve/patsolve/
H A Dpat.c84 #define NUM_MOVES (move_ptr - soft_thread->possible_moves) in get_possible_moves()
85 var_PTR(move_ptr, soft_thread->possible_moves); in get_possible_moves()
114 soft_thread->possible_moves[0] = move_ptr[-1]; in get_possible_moves()
150 soft_thread->possible_moves[0] = move_ptr[-1]; in get_possible_moves()
418 fcs_pats__move *move_ptr = soft_thread->possible_moves; in mark_irreversible()
963 var_PTR(move_ptr, soft_thread->possible_moves); in fc_solve_pats__get_moves()
1034 if (fcs_card_is_valid(soft_thread->possible_moves[i].card)) in fc_solve_pats__get_moves()
1037 soft_thread->possible_moves[i]; /* struct copy */ in fc_solve_pats__get_moves()
1045 if (fcs_card_is_valid(soft_thread->possible_moves[i].card)) in fc_solve_pats__get_moves()
1048 soft_thread->possible_moves[i]; /* struct copy */ in fc_solve_pats__get_moves()
[all …]
H A Dpat.h193 fcs_pats__move possible_moves[FCS_PATS__MAX_NUM_MOVES]; member
/dports/games/kreversi/kreversi-21.12.3/src/
H A Dkreversiview.cpp161 MoveList possible_moves = m_game->possibleMoves(); in updateBoard() local
162 for (int i = 0; i < possible_moves.size(); i++) { in updateBoard()
164 Q_ARG(QVariant, possible_moves.at(i).row), in updateBoard()
165 Q_ARG(QVariant, possible_moves.at(i).col), in updateBoard()
/dports/games/iagno/iagno-3.38.1/src/
H A Dgame.vala972 private SList<PossibleMove?> possible_moves;
983 unowned SList<PossibleMove?>? test_move = possible_moves.nth (0);
996 moves = possible_moves.copy_deep ((a) => {
1008 current_state.get_possible_moves (out possible_moves);
1172 possible_moves = new SList<PossibleMove?> ();
1204 possible_moves = new SList<PossibleMove?> ();
1211 possible_moves.prepend (PossibleMove (half_game_size - 1, half_game_size ));
1212 possible_moves.prepend (PossibleMove (half_game_size , half_game_size - 1));
1213 possible_moves.prepend (PossibleMove (half_game_size , half_game_size + 1));
1214 possible_moves.prepend (PossibleMove (half_game_size + 1, half_game_size ));
[all …]
H A Dreversi-view.vala543 if (possible_moves [x, y] == false)
1590 private bool [,] possible_moves;
1595 possible_moves = new bool [game_size, game_size];
1599 possible_moves [x, y] = false;
1622 possible_moves [x, y] = true;
/dports/games/xmahjongg/xmahjongg-3.7/src/
H A Dmatches.cc68 change(g->possible_moves()); in start_hook()
74 change(g->possible_moves()); in move_made_hook()
H A Dgame.hh117 int possible_moves();
160 Game::possible_moves() in possible_moves() function in Game
/dports/games/wesnoth/wesnoth-1.14.17/src/ai/default/
H A Dca.cpp315 std::map<map_location,pathfind::paths> possible_moves; in evaluate() local
316 possible_moves.emplace(leader->get_location(), leader_paths); in evaluate()
408 const ai::moves_map &possible_moves = get_possible_moves(); in evaluate() local
409 const ai::moves_map::const_iterator& p_it = possible_moves.find(leader->get_location()); in evaluate()
410 if (p_it == possible_moves.end()) { in evaluate()
1612 path_map possible_moves; in execute() local
1614 …calculate_moves(resources::gameboard->units(), possible_moves, friends_srcdst, friends_dstsrc, fal… in execute()
1634 for(path_map::const_iterator i = possible_moves.begin(); i != possible_moves.end(); ++i){ in execute()
1651 for(pathfind::paths::dest_vect::const_iterator i = possible_moves[keep].destinations.begin() in execute()
1652 ; i != possible_moves[keep].destinations.end() in execute()
[all …]
H A Dca_move_to_targets.cpp755 std::map<map_location,pathfind::paths> possible_moves; in move_group() local
757 calculate_possible_moves(possible_moves,srcdst,dstsrc,false); in move_group()
/dports/games/wesnoth/wesnoth-1.14.17/src/ai/
H A Dcontexts.hpp190 virtual void calculate_possible_moves(std::map<map_location,pathfind::paths>& possible_moves,
195 std::map<map_location,pathfind::paths>& possible_moves, move_map& srcdst,
579 virtual void calculate_possible_moves(std::map<map_location,pathfind::paths>& possible_moves, in calculate_possible_moves() argument
584 …target_->calculate_possible_moves(possible_moves, srcdst, dstsrc, enemy, assume_full_movement, rem… in calculate_possible_moves()
588 std::map<map_location,pathfind::paths>& possible_moves, move_map& srcdst, in calculate_moves() argument
593 …target_->calculate_moves(units, possible_moves, srcdst, dstsrc, enemy, assume_full_movement, remov… in calculate_moves()
1271 void calculate_possible_moves(std::map<map_location,pathfind::paths>& possible_moves,
1284 std::map<map_location,pathfind::paths>& possible_moves, move_map& srcdst,
/dports/math/py-spopt/spopt-0.2.1/spopt/region/
H A Dazp.py1174 possible_moves = []
1188 possible_moves.append(possible_move)
1193 for i, move in enumerate(possible_moves):
1236 possible_moves.pop(best_move_index)
1238 move = possible_moves.pop(
1239 random.randrange(len(possible_moves))
/dports/games/frogatto/frogatto-1.3.1/modules/hex/data/objects/
H A Dwoodsman.cfg44 set(tmp.possible_moves, possibles),
82 if(tmp.selected and tile_at_mouse in tmp.possible_moves, [
/dports/games/stonesoup/crawl-0.27.1/crawl-ref/source/
H A Dgod-wrath.cc1595 vector<point_distance> possible_moves(candidates.size()); in _prioritise_adjacent() local
1597 for (unsigned i = 0; i < possible_moves.size(); ++i) in _prioritise_adjacent()
1599 possible_moves[i].first = candidates[i]; in _prioritise_adjacent()
1600 possible_moves[i].second = distances[i]; in _prioritise_adjacent()
1603 sort(possible_moves.begin(), possible_moves.end(), in _prioritise_adjacent()
1607 candidates[i] = possible_moves[i].first; in _prioritise_adjacent()
/dports/games/gnugo/gnugo-3.8/engine/
H A Dreadconnect.c666 int possible_moves[MAX_MOVES]; in prevent_connection_two_moves() local
675 possible_moves[0] = 0; in prevent_connection_two_moves()
677 order_connection_moves(possible_moves, str1, str2, in prevent_connection_two_moves()
680 for (r = 1; r < possible_moves[0] + 1; r++) { in prevent_connection_two_moves()
681 if (trymove(possible_moves[r], OTHER_COLOR(board[str1]), in prevent_connection_two_moves()
685 add_array(moves, possible_moves[r]); in prevent_connection_two_moves()
994 int possible_moves[MAX_MOVES]; in prevent_simple_connection_three_moves() local
1004 possible_moves[0] = 0; in prevent_simple_connection_three_moves()
1008 for (r = 1; r < possible_moves[0] + 1; r++) { in prevent_simple_connection_three_moves()
1009 if (trymove(possible_moves[r], OTHER_COLOR(board[str1]), in prevent_simple_connection_three_moves()
[all …]
H A Dreading.c4455 int possible_moves[MAX_MOVES]; in do_find_break_chain3_moves() local
4491 possible_moves[num_possible_moves++] = libs[0]; in do_find_break_chain3_moves()
4500 possible_moves[num_possible_moves++] = libs[1]; in do_find_break_chain3_moves()
4536 int move = possible_moves[k]; in do_find_break_chain3_moves()
4590 int possible_moves[MAX_MOVES]; in break_chain4_moves() local
4625 possible_moves[u++] = libs[0]; in break_chain4_moves()
4631 possible_moves[u++] = libs[1]; in break_chain4_moves()
4637 possible_moves[u++] = libs[2]; in break_chain4_moves()
4643 possible_moves[u++] = libs[3]; in break_chain4_moves()
4651 possible_moves[u++] = libs[k]; in break_chain4_moves()
[all …]
/dports/games/wesnoth/wesnoth-1.14.17/src/ai/formula/
H A Dfunction_table.cpp852 const ai::moves_map &possible_moves = ai_.get_possible_moves(); variable
853 const ai::moves_map::const_iterator& p_it = possible_moves.find(unit_loc);
854 if (p_it==possible_moves.end() ) {
/dports/games/powder/powder118_src/
H A Dcreature.cpp2937 int possible_moves[8]; in findRandomValidMove() local
2965 possible_moves[j++] = i; in findRandomValidMove()
2975 i = possible_moves[rand_choice(j)]; in findRandomValidMove()