mirror of
https://github.com/gwenhael-le-moine/c-urs_-toil-s.git
synced 2025-01-17 18:12:04 +01:00
increment distance
This commit is contained in:
parent
912952c300
commit
ff61256dff
1 changed files with 2 additions and 0 deletions
2
star.rb
2
star.rb
|
@ -84,6 +84,8 @@ p (coord[ 'x' ] + d[ 'x' ]).to_s + ", " + (coord[ 'y' ] + d[ 'y' ]).to_s + ": "
|
|||
coord[ 'y' ] = coord[ 'y' ] + d[ 'y' ]
|
||||
|
||||
set_cell( coord[ 'x' ], coord[ 'y' ], @whats_moving )
|
||||
|
||||
@distance = @distance + 1
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue