Fixed using File.exists? instead of File.exist?, updated Randomizer to PowerPlay (with ducks), misc. tweaking.

This commit is contained in:
2023-01-19 12:33:51 -06:00
parent 451568003a
commit 1e21c64a18
4 changed files with 15 additions and 11 deletions

View File

@@ -49,7 +49,7 @@ robot.forward 100
robot.turn -90
robot.forward 100"
source_code = File.read(SOURCE_FILE_PATH) if File.exists?(SOURCE_FILE_PATH)
source_code = File.read(SOURCE_FILE_PATH) if File.exist?(SOURCE_FILE_PATH)
@source_code = edit_box source_code, width: 1.0, height: 1.0
end