1. makestory
  2. snake-challenge

Commits

makestory  committed da90126

log turn error

  • Participants
  • Parent commits df81ce2
  • Branches default

Comments (0)

Files changed (1)

File examples/makestory/musashi.rb

View file
 while @info['status'] == 'running'
   think
   turn
-  puts "#{@direction_hash[@next]}"
+  puts @turn['status'] == 'ok' ? "#{@direction_hash[@next]}" : 'error'
 end
 
 puts "Total Round #{@info['round']}"