Math Is Fun Forum

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

You are not logged in.

#1 2009-11-23 00:02:38

kaushal049
Member
Registered: 2009-11-22
Posts: 1

how to implement chess puzzle in a website

we are developing a chess game website and we want to add a feature of "daily chess puzzle".
that puzzle should be change daily...
so plz give some idea to achieve that...
how to generate daily new puzzle...or how to save that in database...is there any software which we can use for our website???

Offline

#2 2009-11-23 09:21:04

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

Re: how to implement chess puzzle in a website

Good quality puzzles would need to be hand generated.

But I imagine you could auto-generate something like "mate in 5 moves".

You could use flash or javascript to format it. I would lean towards flash, but that is just me.

The puzzles could be stored in a mysql database and queried via php. Just a table with date and piece positions.


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

Offline

Board footer

Powered by FluxBB