P
Paul Varoutsos
I have a program the simulates the knights tour problem. I made 2
classes, 1 called 'Location' which simulates a location on a chess board
and one called 'KnightsTour' which actually performs the knights tour.
Then I have a main.rb file which just creats a knights tour object
(KnightsTour.new) and calls a method on that object. But whenever i try
to run it, I get the following error:
C:\NetBeansWorkspace\KnightsTour\lib\main.rb:3:in `const_missing':
uninitialized constant KnightsTour (NameError)
from C:\NetBeansWorkspace\KnightsTour\lib\main.rb:8
Any help would be greatly appreciated.
classes, 1 called 'Location' which simulates a location on a chess board
and one called 'KnightsTour' which actually performs the knights tour.
Then I have a main.rb file which just creats a knights tour object
(KnightsTour.new) and calls a method on that object. But whenever i try
to run it, I get the following error:
C:\NetBeansWorkspace\KnightsTour\lib\main.rb:3:in `const_missing':
uninitialized constant KnightsTour (NameError)
from C:\NetBeansWorkspace\KnightsTour\lib\main.rb:8
Any help would be greatly appreciated.