Initial Pull Request

completed: warmups
tower of Hanoi (with saving via YAML)
Mastermind(no saving, but yes AI)

planning to submit Tetris later
essentially, it uses command line instructions, which (on Windows) are not
the same as Unix ones

On Fri, Sep 19, 2014 at 5:27 PM, Andur Carr <notifications@github.com>
wrote:

> In tetris/tetris.rb:
>
> > +      system  `stty #{state}` # turn raw input off
> > +    end
> > +  end
> > +
> > +  #works on OSX and Linux not Windows
> > +  #gets a char without pressing enter
> > +  def enterless_input
> > +    begin
> > +      state = `stty -g`
> > +      `stty raw -echo -icanon isig`
> > +
> > +      input = STDIN.getc.chr
> > +    ensure
> > +      `stty #{state}`
> > +    end
> > +    input
>
> I was very interested to know how this would be done. Now I am curious as
> to why it does not work on Windows.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/vikingeducation/game_center_assignment/pull/2/files#r17816083>
> .
>



-- 

*Michael Alexander*

(310) 429-8822

alexandermw@gmail.com