File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -255,7 +255,11 @@ impl<'a> State<'a> {
255
255
let ( _, cost) = data[ & c] ;
256
256
257
257
if self . is_goal ( robot_idx, c) {
258
- let value = ( self . count_pass ( robot_idx, c) , rng. gen :: < usize > ( ) ) ;
258
+ let value = (
259
+ u32:: max_value ( ) - cost,
260
+ self . count_pass ( robot_idx, c) ,
261
+ rng. gen :: < usize > ( ) ,
262
+ ) ;
259
263
match goal_value {
260
264
Some ( goal_value) if goal_value > value => { }
261
265
_ => {
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ echo "Creating $OUTPUT"
17
17
mkdir -p $OUTPUT
18
18
19
19
SECONDS=0
20
- ./target/release/icfpc2019 --output $OUTPUT --input ./input
20
+ ./target/release/icfpc2019 --output $OUTPUT --input ./input --duration 300
21
21
echo " $( date +" %Y-%m-%d %T" ) : running time is $SECONDS secs" | tee -a $LOG_FILE
22
22
23
23
cargo run --bin score --release -- --input ./input --output $OUTPUT | tee -a $LOG_FILE
You can’t perform that action at this time.
0 commit comments