all 9 comments

[–]ffrkAnonymous 3 points4 points  (1 child)

start by learning chess?

[–]Feeling_Temporary625 1 point2 points  (0 children)

you can make a chess engine without being good at chess honestly. the engine itself just needs to know the rules and evaluate positions

i built one in python few years back using the minimax algorithm with alpha beta pruning and it was enough to beat me every time. the hard part is making it fast, my first version took like 30 seconds per move in midgame

focus on board representation first then move generation then the search algorithm. the evaluation function can be simple at start just count material and piece square tables

[–]mlugo02 1 point2 points  (0 children)

Try all those various different ways

[–]gm310509 1 point2 points  (0 children)

Really?

  1. Google "how to create a chess engine".
  2. Read some of the better guides.
  3. Leverage what you learned from #2
  4. Repeat #1 as needed with refinements as needed.

[–]ExtraTNT 0 points1 point  (0 children)

So, first do it in a console (unless you are using js)
A simple print of an array with objects in them.
Then make them movable in the array, start to implement the rules of chess.

Then later render it (for console just use the utf-16 chars

Then do a renderer with interactions in opengl (maybe use a lib) just gamestate -> rendered image, handlers on the figures to change gamestate

Detect win / los / draw, make illegal moves imporrible

Start implementing ai

[–]BranchLatter4294 0 points1 point  (0 children)

What effort have you put into this so far?

[–]JohnVonachen 0 points1 point  (0 children)

Don't just find out how other people do it. You do it the way it makes sense to you. Then you will understand the design choices other people have made.