Using Shoes as GUI

HI guys, am using shoes as my GUI for a project am working on, am
basically trying to create a shogi game board, but am getting a $end
expecting Kend compiling error? and its killing me am not really great
with ruby yet I have just started, so please guys if you can help.
please help here is what is did so far

Shoes.app :width =>400, :height =>400 do
class Movechecker :board
attr_accessor :board
def initialize
@board = []
for r in 0…17
@board [r]=0
end
end
end

am I just doing it wrong or am I missing something? and how would you
create a game board if this whole thing is wrong?

On Sun, Feb 21, 2010 at 9:53 PM, Moe F. [email protected] wrote:

HI guys, am using shoes as my GUI for a project am working on, am
basically trying to create a shogi game board, but am getting a $end
expecting Kend compiling error? and its killing me am not really great
with ruby yet I have just started, so please guys if you can help.
please help here is what is did so far

Try taking out “:board” after “class Movechecker”.

Eric C. wrote:

Try taking out “:board” after “class Movechecker”.

I did i got the same error Eric syntax unexpected $end expecting Kend
this is the code
Shoes.app :width=> 400, :height=>400 do
class Movechecker
attr_accessor :board
def initialize
@board = []
for r in 0…17
@board [r] = 0
end
end
end
hopefully this is what you meant

You may want to post this to the shoooes mailing list, just send an
email to
[email protected]

Moe F. wrote:
I think I got something I capitalized the c in Class and I took out the
:board after Movechecker and got a shoe window to come up Yes so good
so far how would I get the board drawn from here?

Claudio Bustos wrote:

Shoes.app :width=> 400, :height=>400 do
class Movechecker
attr_accessor :board
def initialize
@board = []
for r in 0…17
@board [r] = 0
end
end
end
hopefully this is what you meant

first end: for loop
second end: def end
third end: class end
fourth end: ?

You miss a “end”

Cool this help at least now I don’t have any syntax error, and my shoe
window opens up, but how do I go about and create a board, what method
would I use to create horizontal and vertical lines???

Shoes.app :width=> 400, :height=>400 do
class Movechecker
attr_accessor :board
def initialize
@board = []
for r in 0…17
@board [r] = 0
end
end
end
hopefully this is what you meant

first end: for loop
second end: def end
third end: class end
fourth end: ?

You miss a “end”

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs