File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -255,7 +255,11 @@ impl<'a> State<'a> {
255255 let ( _, cost) = data[ & c] ;
256256
257257 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+ ) ;
259263 match goal_value {
260264 Some ( goal_value) if goal_value > value => { }
261265 _ => {
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ echo "Creating $OUTPUT"
1717mkdir -p $OUTPUT
1818
1919SECONDS=0
20- ./target/release/icfpc2019 --output $OUTPUT --input ./input
20+ ./target/release/icfpc2019 --output $OUTPUT --input ./input --duration 300
2121echo " $( date +" %Y-%m-%d %T" ) : running time is $SECONDS secs" | tee -a $LOG_FILE
2222
2323cargo run --bin score --release -- --input ./input --output $OUTPUT | tee -a $LOG_FILE
You can’t perform that action at this time.
0 commit comments