Chess Auto Play
$30-250 USD
货到付款
I need a C# and JavaScript expert to work on a small project that I want to accomplish.
If you're a C# expert I expect you to know how to use [url removed, login to view] and call [url removed, login to view] to use MOUSEEVENT. Basically what I want is a program written in C# that can play chess on chess.com. I want a program that looks exactly like the one in this video on youtube ([url removed, login to view]). I suggest that you use an iPad to view the video because I can see every line of code in this video using an iPad but not on a laptop or desktop.
You don't have to build a chess engine. You can use any existing chess engine such as Rybka, Houdini, Stockfish or whatever engine you choose. If you take a look of the first video. The programmer uses only 3 files of codes: [url removed, login to view], [url removed, login to view] and Squares.cs. This program should be simple but you must know how to extract the PGN notation from the DOM and convert it to Algebraic Notation (from-to notation so you can send to the chess engine for processing).
The chess engine I want to use, preferably Rybka because it's free to download. Again, if you know how to use any other chess engine you're welcome to use. I do have some documentation of how to use Rybka API in C#
So the algorithm is very simple:
1. Get the PGN from the DOM.
2. Convert the PGN to (algebraic format / "from-to" format)
3. Send the converted PGN to the chess engine to process.
4. The engine will compute and return the best move.
5. Based on the best move returned by the engine (for example c2c4), instruct mouse to move chess piece on board.
6. Depending if you're playing as White or playing as Black. If you're playing as White then simply instruct the mouse to move the chess piece if the move # is Odd and vice versa instructing the mouse to move the chess piece when move # is Even. Again, please refer to the video, the programmer created to buttons "Play as White" and "Play as Black" for a reason.
#2 might be a challenge but if you're a JavaScript Expert then I think you should be able to obtain the PGN by injecting JavaScript into the DOM via Chrome console. Below is a video a programmer uses JavaScript to inject right into the DOM to obtain the PGN notation. It took him 3 hours to finish the project. I don't hope you to do the same because I know that programmer is a genius. Please take a look at the video here: ([url removed, login to view]).
If you have built an Auto Clicker in c# before then this project should be easy for you because most Auto Clickers uses [url removed, login to view] to simulate mouse click. Before I award you the project I like to know how you go about to extract the PGN from the DOM and convert it to "from-to" notation. Also, I want to see your algorithms of how you go about and convert PGN notation to "from-to" format. "From-to" format for example c2c4 which means move pawn from c2 to c4 where as PGN notation is a short-hand which written as "c4" only.
项目ID: #5335318
关于项目
有3名威客正在参与此工作的竞标,均价$236/小时
Dear Hoang Tu, I've read your requirements carefully. With expertise in both C# and javascripts, I could be a good fit. I also have very high ability in algorithm and solving problem. I'll complete it with 100% ac 更多