[Dev-C++ code] Realize AI playing backgammon

This article is neither original nor reproduced, so I chose a compromise solution: translation. The main code in this article comes from C++ Backgammon AI_[PE]Classic Eight Cannons Using the minimax algorithm, α-β pruning. After the recent optimization, the running speed has been improved a lot. When maxDepth is 3 (the root node is 4 layers), […]

Dev-C++5.11 Game Creation Simple Mini World

Wuhu! I’m back! Homework is all done! The code I brought today is what I want + write = 1 week, please collect it, praise it, let’s work hard together! OK! Old rules, introduce the code #include <bits/stdc++.h> #include <windows.h> #include <unistd.h> #include <conio.h> #define LIFE 15 #define HUNGRY 100 #define SPEED 1000 using namespace […]

[Solved] In Dev-c++, the header file and the header file function are separated, and the problem of compiling the main function jumps out of undefined reference to solve the problem

Update time: 2022.5.13 8:00 Learning Tan Haoqiang C++ 3rd Edition Object-Oriented Programming, Chapter 2 Exercise 4: Three files need to be separated, the main function (.cpp), the class declaration (header file), and the member function definition file (.cpp) In the implementation of Dev-C++ alone, it is found that undefined reference to set_value keeps appearing in […]