Math Is Fun Forum

  Discussion about math, puzzles, games and fun.   Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ • π ƒ -¹ ² ³ °

You are not logged in.

#1 2010-03-17 13:59:49

JaneFairfax
Member
Registered: 2007-02-23
Posts: 6,868

Chess (Flash Version)

http://www.mathsisfun.com/games/chess.html

This program is really, really, really stupid. This was the game I just played against it.

StupidComputer.png

Last edited by JaneFairfax (2010-03-17 14:03:45)

Offline

#2 2010-03-17 14:15:45

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Chess (Flash Version)

Hi Jane;

Here is one of my games. It is true it doesn't play very well but it is every programmers dream to write a chess program. It is a great achievement to write one, no matter how well it plays.

Try this one when you are feeling good. It is a watered down version of the grandmaster strength shredder but it is still formidable. One of my final positions with it where I had white is below. Easy level is easy to beat but the other levels are tougher.

http://www.shredderchess.com/play-chess-online.html


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#3 2010-03-17 14:42:45

MathsIsFun
Administrator
Registered: 2005-01-21
Posts: 7,713

Re: Chess (Flash Version)

That is about as good as I can get it with limited computing power. A rewrite in Actionscript could give it 10x the speed and allow deeper thinking.


"The physicists defer only to mathematicians, and the mathematicians defer only to God ..."  - Leon M. Lederman

Offline

#4 2010-03-17 14:46:07

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Chess (Flash Version)

Not knocking it Maths, it plays better than mine did.

Here is one of my games. It is true it doesn't play very well but it is every programmers dream to write a chess program. It is a great achievement to write one, no matter how well it plays.

Sorry, MIF for this incredibly off the wall attempt at a compliment. It does sound like a knock. I was trying to make a point to Jane and tripped over my own tongue doing it. I didn't want to sound like I was rebuking her statement and started fence straddling.

I cannot ascertain how well that program plays based on one or two results.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#5 2010-03-17 17:41:29

MathsIsFun
Administrator
Registered: 2005-01-21
Posts: 7,713

Re: Chess (Flash Version)

Hey Bobby, please explain. Is Shredder yours?


"The physicists defer only to mathematicians, and the mathematicians defer only to God ..."  - Leon M. Lederman

Offline

#6 2010-03-17 18:09:17

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Chess (Flash Version)

Hi MathsisFun;


Heck no! Stefan Meyer-Kahlen wrote Shredder. It is one of the strongest engines in the world. I was just a guy who was interested in AI.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#7 2010-03-17 21:19:00

MathsIsFun
Administrator
Registered: 2005-01-21
Posts: 7,713

Re: Chess (Flash Version)

So ... don't be shy ... tell me about the AI. I was once a member of the AAAI, y'know.


"The physicists defer only to mathematicians, and the mathematicians defer only to God ..."  - Leon M. Lederman

Offline

#8 2010-03-18 03:16:26

JaneFairfax
Member
Registered: 2007-02-23
Posts: 6,868

Re: Chess (Flash Version)

MathsIsFun wrote:

That is about as good as I can get it with limited computing power. A rewrite in Actionscript could give it 10x the speed and allow deeper thinking.

Well, for a start, you could teach your program

(1) not to move knights to the sides of the board unnecessarily (knights are more useful in the centre of the board, where they are more mobile)

(2) not to touch the a- and h-pawns until later in the game (the side pawns early on are better engaged in defending the more central pawns, which should be deployed to take control of the centre of the board as quickly as possible)

Offline

#9 2010-03-18 08:21:50

MathsIsFun
Administrator
Registered: 2005-01-21
Posts: 7,713

Re: Chess (Flash Version)

Thanks, Jane. I can play with settings like that ... but it may open up other avenues for savvy humans smile


"The physicists defer only to mathematicians, and the mathematicians defer only to God ..."  - Leon M. Lederman

Offline

#10 2010-03-19 13:46:41

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Chess (Flash Version)

Hi MathsisFun;

Sorry, didn't see your question.

I think you are overestimating me. As soon as I learned the minimax algorithm I wrote some chess engines to solve specific chess positions. They didn't do a very good job. You see I knew nothing of Alpha - Beta pruning, razoring, iterative deepening, bitbases, or tablebases. All the things that make todays engines strong.

I became interested in machine learning but thought the modern attempts were junk. From Turing's love letters to shrdlu and eliza  to Doug Lenats monstrosity. I Came to Vegas and wrote some stuff to solve specific gaming problems. Then I began to work on an intelligent poker program. I made some progress but the legendary draw poker expert Mike Caro (The Mad Genius ) completed Orac before me. I could see that he was miles ahead of me so I stopped.

Then I heard that a lot earlier Marvin Minsky and Terry Winograd ( I think ) had written an expert system that scored better on the MIT calculus exam than most humans could. I became fascinated with the thought of computer algebra. My brother ( jimmyR, also on this forum at times ) and I set out to write our own CAS. I got about 1/4 of the way done when I discovered Mupad 1.4 lite on the internet. It was again way ahead of my package. My career in programming and AI stopped right there.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#11 2013-11-23 00:54:37

Nehushtan
Member
Registered: 2013-03-09
Posts: 957

Re: Chess (Flash Version)

Norwegian prodigy Magnus Carlsen is new chess champion

Norwegian chess prodigy Magnus Carlsen has become the world champion, beating Indian title holder Viswanathan Anand.

Despite having been world champion since 2007, 43-year-old Anand was ranked number eight in the world.

But his role in promoting chess in India, a country obsessed with cricket, is without parallel.

BBC News


240 books currently added on Goodreads

Offline

#12 2013-12-14 21:58:25

Nehushtan
Member
Registered: 2013-03-09
Posts: 957

Re: Chess (Flash Version)

JaneFairfax wrote:

This program is really, really, really stupid.

Not as stupid as this one.

ReallyStupidComputer.png

http://scacchi.chess.com/


240 books currently added on Goodreads

Offline

#13 2015-01-13 06:59:55

Olinguito
Member
Registered: 2014-08-12
Posts: 649

Re: Chess (Flash Version)

Checkmate.png


Bassaricyon neblina

Offline

#14 2015-03-13 23:43:06

phrontister
Real Member
From: The Land of Tomorrow
Registered: 2009-07-12
Posts: 4,887

Re: Chess (Flash Version)

y3mRbjJD_VykijygOttZ0ECfoO4Rb4s4PCwQdmyo_uzYM9LXyyiOQb3b5omLEQC_IRbAwraSfHJ9JR0YuRn5mMLyonW3UBVVh2Hu_cxQdTRSEm6A7ICtN7pg-ar3XVGWnpdVxNYi5a6lD_nuHVlssFkCnbt9PUpNm711QRJRKHow14?width=611&height=435&cropmode=none

Last edited by phrontister (2017-02-22 00:28:56)


"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson

Offline

#15 2015-03-14 00:01:43

phrontister
Real Member
From: The Land of Tomorrow
Registered: 2009-07-12
Posts: 4,887

Re: Chess (Flash Version)

y3mJhT7CgiimmWRXPHKk42wdEJkyYN59vxZjqTcHGpisvXwFsnSm9lgU78ZQ1dbaN3bjcNY6jwtfqvC3cmxwAn005dLLJ_kVPebiTMxeLspG4cY7CyZkSC5ofVfHNg2Jmm2qRa5mYL9djNvegQNA6q4gn8gczGQDkOqYrDkEAuWhkk?width=611&height=435&cropmode=none

Last edited by phrontister (2017-02-22 00:27:43)


"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson

Offline

Board footer

Powered by FluxBB