I need chess game implemented in C++,it should be a 1 player game with AI techniques implemented for the computer. i m willing to pay.
<snip,snip,snip>

Salem commented: If you're too stupid to google "chess source code", do the world a favour and give up now. -3

Dani AI

Generated

A concise expert note for this thread: asked for a paid, single‑player C++ chess implementation and later requested help building one. Community replies ranged from flame warnings by and to practical direction — suggested the Job Offers forum for hiring and pointed out that mature open‑source engines are instructive but sizeable. The following is a compact, pragmatic plan for builders and requesters that fills gaps left by earlier posts.

Implementation roadmap (priorities)

  • Pick a board model: simple 8x8 array for clarity, 0x88 for easier off‑board checks, or bitboards for performance once comfortable.
  • Implement move generation producing pseudo‑legal moves, then filter for legality. Cover special rules: castling rights, en passant, promotions and promotion choices.
  • Verify the generator with perft-style tests (move counts at fixed depths). Store state with FEN and save games in PGN. Keep engine and UI strictly separated so the AI can be reused or hooked to a GUI later.

Search, evaluation and tuning

  • Start with minimax + alpha‑beta and add iterative deepening and quiescence search to reduce horizon effects. Use a simple eval (material + piece‑square tables + mobility) and gradually add king safety and pawn structure heuristics.
  • Add move ordering, a transposition table (Zobrist hashing), and simple time management once the basic search is stable. Example iterative loop (conceptual):
for (int depth = 1; depth <= maxDepth; ++depth) {
    bestMove = alphaBeta(root, depth, -INF, +INF);
    /* record bestMove and time used */
}

Practical notes for hiring or learning

  • Paid briefs should list required strength (ELO or search depth), time controls, target platforms, GUI vs console, I/O formats, acceptance tests (perft counts, sample positions), and budget/deadline.
  • Common pitfalls: incorrect castling/en‑passant handling, broken make/unmake move routines, missing draw rules (threefold/50‑move). Build incrementally, validate with unit tests and perft, and only profile/optimize after correctness is solid.

Recommended Answers

All 7 Replies

Unfortunately you will get flamed for making a post like that here.

Just fyi.

Flamed?
Man, I'm gonna need a major deciduous forest just to get enough wood to start the fire for the flaming that post deserves!

He could post the same thing in Job Offers without getting flamed or getting his phone number snipped.

i need help with the implementation of a chess game in C++.. help!

Ok here it is

int main()
{
   while(true)
   {
      read_previous_posts();
   }
}

there is a project called xboard.
xboard is just only the graphical user interface to the underlying GNU chess engine.
Ya GNU chess engine consists an AI engine too than a simple min-max algorithm.And
to hack it's codebase,you needs a PHD in mathematics.

If still you didn't lose your interest , go there.
http://www.tim-mann.org/gnuchess.html
download the codebase.

believe me that codebase is very complicated, and if you are not a patient code
reviewer to read and understand code first, please don't request svn access from
the project moderator or even submit any patches.

And it's hard but ppl are maintaining it.So its up to you to become patient and
read the codebase until you understand.

He could post the same thing in Job Offers without getting flamed or getting his phone number snipped.

oh man finding a job related to C++ is that much of difficult and complicated?

:( but I never want to lose my job either,C++ programmer is not the most pain-full job in this world.PS:- see why , http://www.youtube.com/watch?v=XKNZdQYF624

This post is related or non-related.However if you think it's very hard to read the code
base like that,it's not he most hardest thing in the world, Think twice before you giving
up ! Good luck !

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.