Home
last modified time | relevance | path

Searched refs:valid_move (Results 1 – 25 of 51) sorted by relevance

123

/dports/games/tty-solitaire/tty-solitaire-1.3.1/tests/
H A Dgame_test.c15 assert(!valid_move(stock_0, stock_0)); in test_valid_move_from_stock_to_stock()
16 assert(!valid_move(stock_0, stock_1)); in test_valid_move_from_stock_to_stock()
17 assert(!valid_move(stock_1, stock_0)); in test_valid_move_from_stock_to_stock()
18 assert(!valid_move(stock_1, stock_1)); in test_valid_move_from_stock_to_stock()
32 assert(valid_move(stock, waste_pile)); in test_valid_move_from_stock_to_waste_pile()
78 assert(!valid_move(stock, maneuvre_stacks[i])); in test_valid_move_from_stock_to_maneuvre_stacks()
95 assert(!valid_move(waste_pile, stock)); in test_valid_move_from_waste_pile_to_stock()
109 assert(!valid_move(waste_pile_0, waste_pile_0)); in test_valid_move_from_waste_pile_to_waste_pile()
110 assert(!valid_move(waste_pile_0, waste_pile_1)); in test_valid_move_from_waste_pile_to_waste_pile()
111 assert(!valid_move(waste_pile_1, waste_pile_0)); in test_valid_move_from_waste_pile_to_waste_pile()
[all …]
/dports/games/xataxx/xataxx/
H A Ddemo.c39 if (valid_move(BLACK)) in demo()
47 if (valid_move(WHITE)) in demo()
H A Ddisplay.c296 if (!valid_move(curr_player)) in play_loop()
300 if (valid_move(BLACK)) in play_loop()
304 if (valid_move(BLACK) && botlevel < 2) in play_loop()
308 while(!valid_move(WHITE)&&valid_move(BLACK)) { in play_loop()
347 while((!count_board(BLACK)) && valid_move(WHITE)) { in play_loop()
351 while((!count_board(WHITE)) && valid_move(BLACK)) { in play_loop()
H A Dboard.c322 valid_move(player) in valid_move() function
/dports/math/cgal/CGAL-5.3/include/CGAL/Mesh_3/
H A Dsliver_criteria.h78 virtual bool valid_move(const Cell_vector& cells,
139 virtual bool valid_move(const Cell_vector& cells,
189 virtual bool valid_move(const Cell_vector& cells,
/dports/science/qmcpack/qmcpack-3.11.0/src/Sandbox/
H A Ddiff_distancetables.cpp148 bool valid_move = els.makeMoveAndCheck(iel, dr); in main() local
150 if (valid_move && Random() < 0.5) in main()
/dports/games/tty-solitaire/tty-solitaire-1.3.1/src/
H A Dgame.h43 bool valid_move(struct stack *, struct stack *);
H A Dkeyboard.c158 if (valid_move(block, *destination)) { in handle_card_movement()
162 if (valid_move(*origin, *destination)) { in handle_card_movement()
H A Dgame.c85 bool valid_move(struct stack *origin, struct stack *destination) { in valid_move() function
/dports/games/cataclysm-dda-tiles/Cataclysm-DDA-0.F/src/
H A Dpathfinding.cpp399 if( valid_move( p, tripoint( p.xy(), p.z - 1 ), false, true ) ) { in route()
460 valid_move( cur, tripoint( cur.xy(), cur.z + 1 ), false, true ) ) { in route()
470 valid_move( cur, tripoint( cur.xy(), cur.z + 1 ), false, true, true ) ) { in route()
480 valid_move( cur, tripoint( cur.xy(), cur.z - 1 ), false, true, true ) ) { in route()
H A Dexplosion.cpp207 if( closed.count( dest ) == 0 && here.valid_move( pt, dest, false, true ) ) { in do_blast()
233 } else if( !here.valid_move( pt, dest, false, true ) ) { in do_blast()
243 if( !here.valid_move( pt, dest, false, true ) ) { in do_blast()
H A Dscent_map.cpp144 … get_map().valid_move( p, tripoint( p.xy(), levz ), false, true ) ); in inbounds()
H A Dmap_field.cpp293 if( gas_can_spread_to( cur, down_tile ) && valid_move( p, down, true, true ) ) { in spread_gas()
348 if( gas_can_spread_to( cur, up_tile ) && valid_move( p, up, true, true ) ) { in spread_gas()
515 if( pd.here.valid_move( p, dst, true, true ) ) { in field_processor_fd_acid()
1061 if( here.valid_move( p, dst, true, true ) ) { in field_processor_fd_fire()
H A Dmonmove.cpp938 if( !here.valid_move( pos(), candidate, false, true, via_ramp ) ) { in move()
1261 if( here.valid_move( pos(), dest, can_bash, true ) && in scent_move()
1908 if( here.valid_move( pos(), below, false, true ) ) { in stumble()
/dports/games/cataclysm-dda/Cataclysm-DDA-0.F/src/
H A Dpathfinding.cpp399 if( valid_move( p, tripoint( p.xy(), p.z - 1 ), false, true ) ) { in route()
460 valid_move( cur, tripoint( cur.xy(), cur.z + 1 ), false, true ) ) { in route()
470 valid_move( cur, tripoint( cur.xy(), cur.z + 1 ), false, true, true ) ) { in route()
480 valid_move( cur, tripoint( cur.xy(), cur.z - 1 ), false, true, true ) ) { in route()
H A Dexplosion.cpp207 if( closed.count( dest ) == 0 && here.valid_move( pt, dest, false, true ) ) { in do_blast()
233 } else if( !here.valid_move( pt, dest, false, true ) ) { in do_blast()
243 if( !here.valid_move( pt, dest, false, true ) ) { in do_blast()
H A Dscent_map.cpp144 … get_map().valid_move( p, tripoint( p.xy(), levz ), false, true ) ); in inbounds()
H A Dmap_field.cpp293 if( gas_can_spread_to( cur, down_tile ) && valid_move( p, down, true, true ) ) { in spread_gas()
348 if( gas_can_spread_to( cur, up_tile ) && valid_move( p, up, true, true ) ) { in spread_gas()
515 if( pd.here.valid_move( p, dst, true, true ) ) { in field_processor_fd_acid()
1061 if( here.valid_move( p, dst, true, true ) ) { in field_processor_fd_fire()
H A Dmonmove.cpp938 if( !here.valid_move( pos(), candidate, false, true, via_ramp ) ) { in move()
1261 if( here.valid_move( pos(), dest, can_bash, true ) && in scent_move()
1908 if( here.valid_move( pos(), below, false, true ) ) { in stumble()
/dports/games/solarus-quest-editor/solarus-quest-editor-e541e1312c242bff10aa1fb84a7eb8b6cb8504ba/src/widgets/
H A Dtileset_view.cpp984 bool valid_move = true; in dragMoveEvent() local
1011 valid_move = false; in dragMoveEvent()
1015 event->setAccepted(valid_move); in dragMoveEvent()
/dports/games/cataclysm-dda-tiles/Cataclysm-DDA-0.F/tests/
H A Dfield_test.cpp166 REQUIRE_FALSE( m.valid_move( p, p + tripoint_below ) );
178 REQUIRE( m.valid_move( p, p + tripoint_below ) );
/dports/games/cataclysm-dda/Cataclysm-DDA-0.F/tests/
H A Dfield_test.cpp166 REQUIRE_FALSE( m.valid_move( p, p + tripoint_below ) );
178 REQUIRE( m.valid_move( p, p + tripoint_below ) );
/dports/games/gnugo/gnugo-3.8/engine/
H A Daftermath.c411 int valid_move = 0; in do_aftermath_genmove() local
420 valid_move = 1; in do_aftermath_genmove()
423 if (valid_move in do_aftermath_genmove()
/dports/games/gnubg/gnubg-1.06.002/
H A Dgtkboard.h87 move *all_moves, *valid_move; member
H A Dgtkboard.c743 bd->valid_move = NULL; in update_move()
757 bd->valid_move = bd->move_list.amMoves + i; in update_move()
758 fIncomplete = bd->valid_move->cMoves < bd->move_list.cMaxMoves in update_move()
759 || bd->valid_move->cPips < bd->move_list.cMaxPips; in update_move()
761 FormatMove(move = move_buf, (ConstTanBoard) bd->old_board, bd->valid_move->anMove); in update_move()
768 if (bd->valid_move) { in update_move()
771 PositionFromKey(anBoard, &bd->valid_move->key); in update_move()
806 else if (bd->valid_move && in Confirm()
807 …bd->valid_move->cMoves == bd->move_list.cMaxMoves && bd->valid_move->cPips == bd->move_list.cMaxPi… in Confirm()
808 FormatMovePlain(move, bd->old_board, bd->valid_move->anMove); in Confirm()
[all …]

123