Clean up
This commit is contained in:
parent
ec6df112b7
commit
51e93e5992
@ -20,9 +20,6 @@ remove_card = function <opponent_card> {
|
||||
}
|
||||
}
|
||||
|
||||
(remove_card 'Library')
|
||||
(output cards)
|
||||
|
||||
make_guess = function <current_room> {
|
||||
if ((length suspects) == 1)
|
||||
&& ((length rooms) == 1)
|
||||
@ -45,5 +42,3 @@ make_guess = function <current_room> {
|
||||
+ '!')
|
||||
}
|
||||
}
|
||||
|
||||
(make_guess 'Library')
|
||||
|
@ -4,7 +4,7 @@ use dust_lang::*;
|
||||
|
||||
#[test]
|
||||
fn clue_solver() {
|
||||
let file_contents = read_to_string("examples/clue_solver").unwrap();
|
||||
let file_contents = read_to_string("examples/clue_solver.ds").unwrap();
|
||||
|
||||
evaluate(&file_contents).unwrap();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user