Since my last post I have played quite a few games versus SecondChess-some I win & some I lose.
Like the game I posted earlier all the games I have played as White with 1.e4 & SecondChess always replies 1.d5 (Scandinavian opening).
I do not mind this as it gives me practice in this opening!!(one day I will let SecondChess play white!!).
Meanwhile I have been trying to learn C programming from internet resources and playing around trying to make my own C console chess engine.
This will take a while as my C programming expertise/skill is basic!
I do hope to look at SecondChess C sourcecode and understand it more now I know more of C language!
If I look at it & get queries I will ask for your help & many thanks for trying to make this engine understandable to a fledgling/beginner chess programmer-this is very helpful!
I am posting this from my login on my wife's desktop computer Win7, where I have just compiled SecondChess so I can play it on this computer(my computer is updating Ubuntu as I type-although it dual boots with Win7 -via KVM switch...).I did this in Geany editor for windows (this uses gcc compiler that is from DevC++ which is in the Win7 path).
It compiled with some error messages which I post below but it runs fine in Arena.
I thought you might be interested in the compile errors/warnings:
gcc -Wall -c "secondchess.c" (in directory: C:\pocopito-secondchess-v0.1-30-gc8db4a0\pocopito-secondchess-c8db4a0)
secondchess.c: In function `Gen':
secondchess.c:530: warning: implicit declaration of function `IsInCheck'
secondchess.c:531: warning: implicit declaration of function `IsAttacked'
secondchess.c: In function `GenCaps':
secondchess.c:603: warning: unused variable `row'
secondchess.c: In function `TakeBack':
secondchess.c:1432: warning: unused variable `i'
secondchess.c: In function `perft':
secondchess.c:1767: warning: unused variable `value'
secondchess.c:1772: warning: unused variable `tmpMove'
Compilation finished successfully.
Doesn't seem to be any major issue here but you may want to consider fixing the code for the GCC compiler?
I have not tried it with VisStudioExpress cl.exe as I did initially on my machine! (As per my orginal post here. Also I have now more experience with various C compilers on Win7 eg cl.exe, tcc, gcc, lcc etc & various IDE eg MSVisStudioExpress/DevC++/Geany!).