jhester / DistributedGA

A distributed Genetic Algorithm simulation.
http://josiahhester.com
5 stars 0 forks source link

Observer not getting some info #3

Closed ghost closed 13 years ago

ghost commented 13 years ago

When creating additional players after the observer it doesn't seem to get data on the new player. Also there seems to be lots of lag (I blame pickle) after you add more than 1 player.

ghost commented 13 years ago

We need a 'packer' function for players like we do for the map. I created a getDictionary() function in the player manager, I feel like the player manager should hold a function that packs all changed player info into a string. This dictionary function should be changed, if we make a pack function in the player then there is no need to return a dictionary...

anander commented 13 years ago

Yeah why need a dictionary when were just packing everything into a string? All it needs is pack, unpack and update which will take the unpacked string and use it to make changes to the players list

ghost commented 13 years ago

the getDictionary is a placeholder until we write a packer/unpacker function, I didn't want to leave the program in a not working state

jhester commented 13 years ago

Right now the observer gets all the data it needs until we want to get things like player death etc.

ghost commented 13 years ago

Yeah, I guess this issue is closed... sort of