[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Challenge: Can you solve the game of Munch/Chomp?

Stedwick

2/14/2008 4:09:00 AM

http://www.philipbrocoum....

I think the game is really fun, especially since the comp will whoop
your butt.

Anyway, I solved it in my own, ridiculously newb-ish way using Ruby
(I'm a math guy, not a programming guy). But, that's one of the
reasons I love Ruby, it's making programming fun again.

Anyway, I found this to be a good math challenge, and slightly less so
a good programming challenge.

So, give it a shot! And let me know what you come up with.

Philip

PS I'm really into solving games with Ruby these days. I was reading
the incredible blog posts about solving Boggle with Ruby here (and
translating it to C++):
http://www.danvk.org/wp/2007-01-30/boggle-2-the-shorte...

In only 12 lines, no less.


Fascinating stuff!
3 Answers

Stedwick

2/14/2008 4:13:00 AM

0

Btw, here's a list of all winning positions on boards up to 8x9, if
you want to check yourself: http://www.philipbrocoum.com/munch/winn...

Philip

James Gray

2/14/2008 2:20:00 PM

0

On Feb 13, 2008, at 10:10 PM, Stedwick wrote:

> http://www.philipbrocoum....

This is very similar to Tactics:

http://www.rubyquiz.com/q...

Thanks for the fun diversion.

James Edward Gray II

Stedwick

2/14/2008 4:50:00 PM

0

Haha, I'll add Tactics to my list of airport games: games that you
play with a sheet of paper with your friends while delayed at the
airport =)