# Using Shoes as GUI

**URL:** <https://www.ruby-forum.com/t/using-shoes-as-gui/183867>\
**Category:** Ruby\
**Created:** [February 22, 2010, 4:53am UTC](https://www.ruby-forum.com/t/using-shoes-as-gui/183867 "2010-02-22T04:53:51Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![moe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ad7895/32.png) [@moe](https://www.ruby-forum.com/u/moe)\
**Post date:** [February 22, 2010, 4:53am UTC](https://www.ruby-forum.com/t/using-shoes-as-gui/183867/1 "2010-02-22T04:53:51Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![moe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ad7895/32.png) [@moe](https://www.ruby-forum.com/u/moe)\
**Post date:** [February 22, 2010, 5:42am UTC](https://www.ruby-forum.com/t/using-shoes-as-gui/183867/2 "2010-02-22T05:42:27Z")

</div>

On Sun, Feb 21, 2010 at 9:53 PM, Moe F. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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”.

---

<div class="post-metadata">

**Author:** ![moe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ad7895/32.png) [@moe](https://www.ruby-forum.com/u/moe)\
**Post date:** [February 22, 2010, 7:04am UTC](https://www.ruby-forum.com/t/using-shoes-as-gui/183867/3 "2010-02-22T07:04:37Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![moe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ad7895/32.png) [@moe](https://www.ruby-forum.com/u/moe)\
**Post date:** [February 22, 2010, 4:27pm UTC](https://www.ruby-forum.com/t/using-shoes-as-gui/183867/4 "2010-02-22T16:27:28Z")

</div>

You may want to post this to the shoooes mailing list, just send an  
email to  
removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![moe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ad7895/32.png) [@moe](https://www.ruby-forum.com/u/moe)\
**Post date:** [February 22, 2010, 7:14am UTC](https://www.ruby-forum.com/t/using-shoes-as-gui/183867/5 "2010-02-22T07:14:04Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![moe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ad7895/32.png) [@moe](https://www.ruby-forum.com/u/moe)\
**Post date:** [February 23, 2010, 5:31am UTC](https://www.ruby-forum.com/t/using-shoes-as-gui/183867/6 "2010-02-23T05:31:27Z")

</div>

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???

---

<div class="post-metadata">

**Author:** ![moe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ad7895/32.png) [@moe](https://www.ruby-forum.com/u/moe)\
**Post date:** [February 22, 2010, 6:55pm UTC](https://www.ruby-forum.com/t/using-shoes-as-gui/183867/7 "2010-02-22T18:55:54Z")

</div>

> 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”
