Apple's Chess 2.0 Source Code Available
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).
The gentleman who wrote sjeng also wrote prototype Vorbis 1.0 encoder that can go down to bitrates of 4kbps that he claims can give a listenable stereo stream. IMHO that's bigger news than source to Chess.app 2.0.
http://tinyurl.com/4ny52
I think I'd be too intimidated to play chess against "the world's most powerful computer." Gosh. :)
Joke aside, I'm eagerly awaiting the 970FX PowerMac, and VERY eagerly awaiting the 3gHz (980?) machines this summer. Ohhh yeahhh...
It's the bundled OS X chess game. You didn't think Mac users played _Solitaire_, did you?
What I'm listening to now on Pandora...
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.
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?
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
You cannot truly appreciate Dilbert until you read it in the original Klingon.
How about this setup?
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 skills...
King = Jobs, because as soon as you think you've caught-up to him, he uses his reality-distortion-field to castle in a new direction. Also, no matter how little is left on the board, you can't quite nail him without a lawyer.
Could somebody figure out how to re-enable the transparent effect that was in the Panther betas? It was a preference before, but now it's gone. In case some haven't seen it before, the board was floating with no background window. I don't remember if the window was transparent or actually able to be clicked-through, but it was very cool. :)
:)
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?
Cwm, fjord-bank glyphs vext quiz
After taking a look at the source I found out that the floating window can be activated without making any modifications to the application. Here's how to enable the transparent window:
/Applications/Chess.app/
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.
infested with jello like fishes no melotron wishes
Thanks! I was worried that opensource.apple.com was going to be slashdotted.
Don't blame me; I'm never given mod points.