librelist archives

« back to archive

Fw: Help with shoes plz

Fw: Help with shoes plz

From:
joe mick
Date:
2010-02-23 @ 05:07

--- On Mon, 2/22/10, joe mick <moomed2003@yahoo.com> wrote:

From: joe mick <moomed2003@yahoo.com>
Subject: Help with shoes plz
To: shoes@librelist.com
Date: Monday, February 22, 2010, 11:35 PM

am trying to make a board game to be specific a shogi board game this is 
my code so far 
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

am able to get a shoe window to open up but am not seeing an array
anywhere. how would I create the board lines or the squares
 that make the 
board to open up with the window? please help I really want to 
understand this becuase I love ruby
and am also a beginner. thanks 




      


      

Re: [shoes] Fw: Help with shoes plz

From:
Martin DeMello
Date:
2010-02-23 @ 06:03
On Tue, Feb 23, 2010 at 10:37 AM, joe mick <moomed2003@yahoo.com> wrote:
>
> am able to get a shoe window to open up but am not seeing an array
> anywhere. how would I create the board lines or the squares
>  that make the
> board to open up with the window? please help I really want to
> understand this becuase I love ruby
> and am also a beginner. thanks

Check out http://zem.novylen.net/ruby/xword.rb for an example of grid
drawing code

martin