Apple's Chess 2.0 Source Code Available 63
Petrochard writes "For all of you programmers who are big chess fans, check out Apple's release of Chess 2.0's source code. It would be cool if somebody could make a Simpson's Chess mod." Chess is based on sjeng (logic) and glChess (interface).
Simpsons been done to death (Score:1)
I think it would be more interesting if someone somehow skinned the Woz for this.
Re:Simpsons been done to death (Score:3, Funny)
Pawn = The common zealous user, because once you go Mac you never go back. Also, there are those rare ones that go all the way to make the next killer app and become Queen-rich.
Knight = Apple's engineers, because of the new & innovative ways in which they move...
Bishop = User-group leaders, because someone has to shepherd the flock...
Rook = Apple-lawyers, because everyone fears being pinned by the long-arm of the law...
Queen = Woz, because that one piece has serious some s
sjeng author wrote extreme vorbis encoder (Score:3, Interesting)
OMG! (Score:1)
it sounds a lot better than i would have thought at the bitrate it is at. this is insane.
Maybe I can fit 1000 songs on a 128MB MP3 player! (Score:1)
Re:sjeng author wrote extreme vorbis encoder (Score:2)
You won't believe your ears!
Try Sultans of Swing [sjeng.org] in 197K!
Amazing! This is truly insane!
Apple, you must support Vorbis. If the iPod does Vorbis, I buy one, and that's a promise.
Re:sjeng author wrote extreme vorbis encoder (Score:2)
As for vorbis & ipod, I wouldn't bother. You can pick up a Rio Karma [riovolution.com] for less than an ipod. They're not perfect but they support Vorbis and Flac, in addition to the usual mp3 and wma. There *have* been hard drive reliability problems, so I'd recommend buying it from somewhere which also supplies an extended warrenty.
Thats Nice of Them (Score:2)
nick
Re:Thats Nice of Them (Score:5, Funny)
Re:Thats Nice of Them (Score:3, Informative)
scary (Score:5, Funny)
Joke aside, I'm eagerly awaiting the 970FX PowerMac, and VERY eagerly awaiting the 3gHz (980?) machines this summer. Ohhh yeahhh...
Re:scary (Score:3, Funny)
My durn G5 whups me into next Tuesday every time I try to play against it. So does my G3 iBook. I like to think that an aptitude for chess is not the sole indicator of intelligence.
Re:scary (Score:2)
Re:scary (Score:2)
Re:scary (Score:2)
hahahahhaa (Score:2)
That's classic.
Re:scary (Score:1)
Windowless Chess (Score:1)
It can be done... (Score:5, Funny)
One of the cornerstones of the current Cocoa-y way of doing things is that the front-end and back-end are separate beasts.
Don't like the back-end? It's possible to build the app to use a program other than sjeng as its brain. It's just a matter of building with a new shell tool (and a little glue so the front-end knows how to use it).
Don't like the front end? It's also possible to build a new wrapper app for sjeng that looks however you want it to. Use the source for the existing Chess program as a template for sjeng, and then go completely nuts. Screw reskinning, design a completely different and abstract chess game!
But the windowless interface might be confusing to some users...
55 W. P - e555 B. P x P
56 W. N x P
56 B. B x System Preferences ?
57 W. BitTorrent - A4 !!
Kernel Panic in 4 moves
Re:Windowless Chess (Score:3, Informative)
Re:The Licensce (Score:5, Funny)
Is this something new ? (Score:5, Insightful)
The reason I wonder is that when I click on the "About Chess" menu item in Chess 2.0 as installed on OS X 10.3, I notice that in the lower right hand corner of the About window there is a button labeled "Download Source Code...". The button opens this page Apple - Public Source - Miscellaneous [apple.com].
So, while still cool, this is not likely to be "news". I do appreciate the pointer, though. It'll be nice to check out for programming ideas, as I'm getting back into Objective-C programming again.
For folks wanting Simpsons mods and other simple image changes, though, you probably don't need the source for that, you just need to realize that the images are in the .app package... changing those really shouldn't require a recompile, should it?
Re:Battery problem? (Score:1, Offtopic)
Re:two players? (Score:2)
I hate to say it but if you couldn't be bothered to figure that out on your own you might want to try checkers
Transparent window? (Score:5, Interesting)
I can't figure it out myself since I'm not a coder, but I've narrowed it down to MBCFloatingBoardWindow... no idea what to do with it tho. Any pointers?
Re:Transparent window? (Score:4, Informative)
Comment out lines 741 through 744 of MBCController.mm -- funny, you've gotta love Objective-C++ -- half my work's in it too. You listening apple? Hire me
Specifically:
[[fFloatingMenuItem menu] removeItem:fFloatingMenuItem];
[[fFloatingView window] release];
fFloatingMenuItem = nil;
fFloatingView = nil;
I found these pretty quickly -- particularly since the menu item *is* in the nib file, that meant I could just run a search for [someMenu removeItem: ] and whammo, there it was. You can thank me later.
Above those lines is a call to getenv() looking up the string "MBC_DEBUG" so I gather you could simply set the parameter in your
Anyway, the above instructions will return the command-F floating window effect.
Try to use it... then you'll understand why apple took it out. It's sad, because from a performance standpoint it's *fine*, the trouble is there's no way to drag or resize the window!
Re:Transparent window? (Score:2)
Re:Transparent window? (Score:3, Informative)
Re:Online!!! (Score:1)
winboard/xboard (Score:1)
If you are interested in this, you might be also interested in Xboard/Winboard by Tim Mann... They are open source interfaces to text based chess engines... This allows you to write a chess program using text interface and use winboard for your GUI... lets you focus on the fun stuff like bitboards and hashtables...
the link for xboard/winboard can be found here [tim-mann.org]
And as a shameless plug you might be interestd in checking out my chess engine (BCE) that can be run under xboard that can be found here [bowron.us]
Transparent Window Hack (Score:4, Informative)
Open Terminal.app and set MBC_DEBUG as an environment variable to 16:
With bash:
set MBC_DEBUG=16
with tcsh:
setenv MBC_DEBUG 16
Now, open Chess.app from the Terminal:
open
There will be a new menu item (Floating Board) under the "Game" menu. Selecting this menu item will toggle the floating board on and off.
There seems to be a bug with the mouse behavior (I can't move any pieces) and I assume this is why this feature was removed. I found that you can get around this bug by doing the following:
Start a game with the normal window.
Play at least one move.
Switch to the floating board.
Select "Take Back Move" from the "Moves" window.
You should now be able to move the pieces as normal.
Re:Transparent Window Hack (Score:2)
Re:Transparent Window Hack (Score:2)
Re:Transparent Window Hack (Score:2)
Re:Transparent Window Hack (Score:2)
cheaters cheaters.. (Score:3, Funny)
Re:cheaters cheaters.. (Score:2)
I don't think it is possible for a chess program to cheat.
Games cheat in many ways, one of which is knowing what the user is doing (e.g if you have a lot of money then your opponent gets a lot of money)
But how can a chess program cheat? It can't.
Re:cheaters cheaters.. (Score:2)
Re:cheaters cheaters.. (Score:2)
Chess has specific rules that a proper chess program has to follow.
Assuming that it DOES follow the rules, there is no way to cheat so as to win.
Little Diagrams (Score:2, Interesting)
But we did notice some redundency in the code, probably because of the layering in the design. The position of the pieces, for example, are stored in several places (each of which is updated with each move). All of the validatio
This is absolutely not new. (Score:3, Interesting)
GNU Chess (Score:2, Interesting)
Re:GNU Chess (Score:2, Informative)
It probably doesn't hurt that Sjeng takes advantage of multiple processors and GnuChess does not.
Ian
Re:GNU Chess (Score:2)