valuefunction file opens with incorrect mode
Brought to you by:
michaelgollin,
ralfberger
Nice library! Unfortunally only for unix. I ported it
to Windows and created solution for MSVS 7.1 with RL_PP
project and sample projects. Curruntly I`m working on
card game and I want to use RL to make computer to play
it`s best. Before applying RL++ to it I wrote another
one sample: tictactoe game. And some problems was
occured while RL++ try to load value function from
file. This file should be explicity opened in binary mode.
FILE *file = fopen( fileName.c_str(), "rb" );
FILE *file = fopen( fileName.c_str(), "w+b" );
instead of
FILE *file = fopen( fileName.c_str(), "r" );
FILE *file = fopen( fileName.c_str(), "w+" );
ActionValueFunction.cpp
Line 143, 179
StateValueFunction.cpp
Line 22, 52
Logged In: YES
user_id=535772
Thanks for pointing that out to me! I'll fix it in the next
version which will hopefully come soon.
Are you interested in putting your code on sourceforge since
others might also be interested in a windows port?
Logged In: YES
user_id=1576770
Yes, of course. I replaced signal handling in RL++ with
events handling. Just two events are available: interrupt
and load. By firing them environment can manage with
library. Unfortunally I don`t have much time and I was not
able to make correct Ctrl+C handling in example projects
except my tictactoe game. I will post message to the forum
with attached archive.
Could you send me the last version of NeuralNetwork.cpp
file? As I understood 1.0 release had some bugs in it.