Food Force/Meeting Logs5: Difference between revisions

From OLPC
Jump to navigation Jump to search
No edit summary
(replace with more readable version)
Line 1: Line 1:
Session Start: Tue Feb 26 22:17:15 2008
Session Start: Tue Feb 26 22:17:15 2008
Session Start: Tue Feb 26 22:17:15 2008


Session Ident: #olpc-foodforce


'''<Ankur>''' So, you checked the code?
�01[22:18] <Ankur> Hello Muriel.


[22:21] <@MurielGodoi> hello
'''<MurielGodoi>''' yep


'''<Ankur>''' Any suggestions you would like to give before moving further?
[22:22] <@MurielGodoi> today reinstalled my X packages :)


�01[22:24] <Ankur> thats Good


'''<MurielGodoi>''' Just one thing about the resources...
�01[22:25] <Ankur> So, you checked the code?


'''<Ankur>''' Yes.
[22:26] <@MurielGodoi> yep


'''<MurielGodoi>''' sounds weird the two quantities (market and village) in the same
�01[22:27] <Ankur> Any suggestions you would like to give before moving further?
object. resources is a abstract class. It should works for the village stock, market stock or N stock


'''<Ankur>''' This way, we can keep the qts of Village and Market in two different
�03[22:27] * Anubhav (n=chatzill@221.134.226.89) has joined #olpc-foodforce
variables whenever there is a change in some resource value.


'''<MurielGodoi>''' tomorrow when trading between players it might also works
[22:29] <Anubhav> Hello Muriel , Hi Ankur


'''<MurielGodoi>''' http://en.wikipedia.org/wiki/Model-view-controller
[22:29] <@MurielGodoi> Hello Anubhav


'''<MurielGodoi>''' I was thinking about use that architectural pattern
�01[22:30] <Ankur> Hi Anubhav


'''<Ankur>''' I am opening it.
[22:30] <@MurielGodoi> Just one thing about the resources...


'''<MurielGodoi>''' when reading realize what we should have in our model. We wont use the frameworks... just the patterns
�01[22:30] <Ankur> Yes.


'''<Ankur>''' Adding an additional layer named controller between data and user interface will increase flexibility. Controller will independently deal with both of them. Right? So, Muriel, We have to make an additional controller.py file for that
[22:30] <Anubhav> I hope my net works smoothly today


'''<MurielGodoi>''' right
[22:30] <@MurielGodoi> sounds weird the two quantities (market and village) in the same
object


'''<MurielGodoi>''' http://en.wikipedia.org/wiki/Model-view-controller
[22:33] <@MurielGodoi> resources is a abstract class. It should works for the village stock, market stock or N stock


'''<MurielGodoi>''' That is the architectural pattern. model is what we are coding now. control will be the game engine and view the gui and village simulation. the gui sends the interaction to the controller, the controller changes the model and the model updates the gui
�02[22:33] * Anubhav (n=chatzill@221.134.226.89) Quit (Remote closed the connection�)


'''<Ankur>''' Exactly
�01[22:33] <Ankur> This way, we can keep the qts of Village and Market in two different
variabales when ever there is a change in some resource value.


[22:34] <@MurielGodoi> tomorrow when trading between players it might also works
'''<MurielGodoi>''' there is not much game logic in the model


'''<MurielGodoi>''' as price calculus
[22:34] <@MurielGodoi> http://en.wikipedia.org/wiki/Model-view-controller


'''<Ankur>''' ?
[22:35] <@MurielGodoi> I was thinking about use that architectural pattern


'''<MurielGodoi>''' it is a controller responsibility
�01[22:35] <Ankur> I am opening it.


'''<Ankur>''' Yes, we just have the information about Resources, Indicators, and
�03[22:35] * Looking up MurielGodoi user info...
Facilities classes. these will be further controlled by the controller. GUI will be directly linked with the controller which we have to design,
which will update our model.py file and further model.py will update out GUI. Similar to MVC model


'''<Ankur>''' GUI- > Controller.py -> Model.py -> GUI Right?
[22:35] <@MurielGodoi> should we wait for deepank?


'''<MurielGodoi>''' right
�01[22:35] <Ankur> Till then, I am seeing it.


'''<Ankur>''' So for Game Engine developement, do we have to start from the bottom. i.e. for controller.py file?
�01[22:36] <Ankur> Sure


'''<MurielGodoi>''' sure
�01[22:36] <Ankur> And for Anubahv also.


'''<Ankur>''' Could you please give us some pointers for that?
[22:36] <@MurielGodoi> when reading realize what we should have i our model


'''<MurielGodoi>''' you also should take a look at GObjects, that is to send messages
[22:37] <@MurielGodoi> We wont use the frameworks... just the pattens


'''<Ankur>''' from GUI to Model.py Right?
[22:40] <@MurielGodoi> bbiab


'''<MurielGodoi>''' to communicate model-view-control, gui to control, control to model, and model to view
�03[22:44] * Anubhav (i=Anubhav@221.134.225.241) has joined #olpc-foodforce


'''<Ankur>''' If it is already there, We can create a controller class out of this
�02[22:45] * Anubhav (i=Anubhav@221.134.225.241) Quit (Client Quit�)
file, basically this being handling the messages and other events triggered by the user. According to the events performed, Model file will be updated.


'''<MurielGodoi>''' yep it is good a new file for that and maybe a refactoring of FoodForce2.py too. strip the view from there to view.py
�03[22:45] * Anubhav (i=Anubhav@221.134.225.241) has joined #olpc-foodforce


'''<Ankur>''' And after some fixed interval after modification of model.py file, The
�01[22:45] <Ankur> Adding an additional layer named controller between data and user interface will increase flexibility.

�03[22:46] * deepank (n=deepank@59.178.41.239) has joined #olpc-foodforce

[22:46] <deepank> Hi all

[22:46] <Anubhav> Hi

�01[22:47] <Ankur> Controller will independently deal with both of them. Right?

�01[22:47] <Ankur> Hi

�01[22:49] <Ankur> So, Muriel, We have to make an additional controller.py file for that

[22:50] <@MurielGodoi> right

[22:50] <@MurielGodoi> hi deepank

[22:50] <@MurielGodoi> http://en.wikipedia.org/wiki/Model-view-controller

[22:50] <@MurielGodoi> That is the architectural pattern

[22:51] <@MurielGodoi> model is what we are coding now

[22:51] <@MurielGodoi> control will be the game engine

[22:51] <@MurielGodoi> and view the gui and village simulation

Session Close: Tue Feb 26 22:51:51 2008
Session Start: Tue Feb 26 22:51:51 2008
Session Ident: #olpc-foodforce

�02[22:51] * Disconnected

�02[22:52] * Attempting to rejoin channel #olpc-foodforce

�03[22:52] * Rejoined channel #olpc-foodforce

[22:52] <@MurielGodoi> the gui sends the interaction to the controller

[22:52] <@MurielGodoi> the controller changes the model

[22:52] <@MurielGodoi> and the model updates the gui

�03[22:53] * Retrieving #olpc-foodforce modes...

�01[22:53] <Ankur> Exactly

[22:54] <@MurielGodoi> there is no much game logic in the model

[22:54] <@MurielGodoi> as price calculus

�01[22:54] <Ankur> ?

[22:54] <@MurielGodoi> it is a controller responsability

�01[22:55] <Ankur> Yes, we just have the information about Resources, Indiacators, and
Faciliteis classes,. these will be further controlled by the controller.

�01[22:56] <Ankur> GUI will be directly linked with the controller which we have to design,
which will update our model.py file

�01[22:56] <Ankur> and further model.py will update out GUI

�01[22:56] <Ankur> Similar to MVC model

�01[22:56] <Ankur> GUI- > Controller.py -> Model.py -> GUI Right?

[22:57] <@MurielGodoi> right

�01[22:57] <Ankur> So for Game Engine developement, do we have to start from the bottom.

�01[22:58] <Ankur> i.e. for controller.py file?

[22:58] <@MurielGodoi> sure

�01[22:58] <Ankur> Could you please give us some pointers for that?

[22:58] <@MurielGodoi> you also should take a look at GObjects

[22:59] <@MurielGodoi> that is to send messages

�01[22:59] <Ankur> from GUI to Model.py Right?

[23:00] <@MurielGodoi> to communicate model-view-control

[23:00] <@MurielGodoi> gui to control

[23:00] <@MurielGodoi> control to model

[23:00] <@MurielGodoi> and model to view

�01[23:00] <Ankur> If it is already there, We can create a controller class out of this
file, basically this being handling the messages and other events triggered by the user.

�01[23:00] <Ankur> According to the events performed, Model file will be updated.

[23:01] <@MurielGodoi> yep it is good a new file for that

[23:01] <@MurielGodoi> and maybe a refactoring of FoodForce2.py too

[23:02] <@MurielGodoi> strip the view from there to view.py

�01[23:02] <Ankur> And after some fixed interval after modification of model.py file, The
corresponding changesd in the GUI will be made. This will be done direclty as
corresponding changesd in the GUI will be made. This will be done direclty as
model.py->view.?
model.py-> view.? or again controller in between?


'''<MurielGodoi>''' the model should send messages to the view them something changes
�01[23:02] <Ankur> or again controller in between?


[23:02] <@MurielGodoi> the model can send messages to the view them something changes
'''<MurielGodoi>''' nop, model-> view, take a look at MVC diagram


'''<Ankur>''' thats an indirect association! It will be through model->controller first, I think?, if we follow this. Otherwise to make things simpler, we can directly link them. as you told model->view
[23:03] <@MurielGodoi> s/can/should


[23:04] <@MurielGodoi> nop, model-> view, take a look at MVC diagram
'''<MurielGodoi>''' there is no unique solution... I am trying to see the effects


'''<Ankur>''' Yes, but we will have the one which makes things simpler and faster. So our next task should be to link View to model.py through a controller. Right?
�01[23:04] <Ankur> thats an indirect association!


'''<MurielGodoi>''' right
�01[23:05] <Ankur> It will be through model->controller first, I think?, if we follow this.
Otherwise to make things simpler, we can directly link them.


'''<Ankur>''' where for controller.py we will get help from GObjects and Foodforce2.
�01[23:05] <Ankur> as you told model->view
And to extract ths code for view from foodforce2.py to a new file view.py. Right?


'''<MurielGodoi>''' GObject will helps at all. it will send and receive messages between
[23:05] <@MurielGodoi> there is no unique solution...
the modules. FoodForce2.py will be the main one to run and launch the game and more three files: view.py, control.py and model.py. FoodForce2.py will instantiate the modules and link then you will realize how FoodForce2.py will link them when reading about the GObjects


'''<Ankur>''' Okay
[23:06] <@MurielGodoi> I am trying to see the effects


�01[23:06] <Ankur> Yes, but we will have the one which makes things simpler. :)


'''<MurielGodoi>''' I used that architeture at Memorize game
�01[23:07] <Ankur> and faster.


'''<Ankur>''' What is this
�01[23:07] <Ankur> So our next taks should be to link View to model.py through a
controller. Right?


'''<Ankur>''' Had you developed more games except this?
[23:09] <@MurielGodoi> right


'''<MurielGodoi>''' http://dev.laptop.org/git?p=projects/memorygame
�01[23:09] <Ankur> where for controller.pf we will get help from GObjects and Foodforce2.
And to extract ths code fro view from foodforce2.py to a new file view.py.


'''<MurielGodoi>''' I developed simple games. like educational hangmans :)
�01[23:09] <Ankur> Right?


'''<Ankur>''' Cool
�01[23:10] <Ankur> Sorry for typos


'''<MurielGodoi>''' if you take a look at Memorize code: game.py is the control. model.py is model and cardtable.py and scoreboard are the view, activity.py instantiate the modules and link them, there is no problem
[23:11] <@MurielGodoi> GObject will helps at all.. it will send and receive messages between
the modules


'''<Ankur>''' I hope all questions to this meeting are over from my side. Deepank and
�01[23:11] <Ankur> thats good.
Anubhav, if you have any questions, you can ask them


[23:11] <@MurielGodoi> FoodForce2.py will be the main one to run and launch the game
'''<MurielGodoi>''' My master thesis is about computers in education, but not exactly

[23:12] <@MurielGodoi> and more three files: view.py, control.py and model.py

[23:12] <@MurielGodoi> perfect

[23:13] <@MurielGodoi> FoodForce2.py will instantiate the modules and link then

[23:14] <@MurielGodoi> you will realize how FoodForce2.py will link them when reading about
the GObjects

�01[23:14] <Ankur> Okay


[23:14] <@MurielGodoi> I used that architeture at Memorize game

�01[23:14] <Ankur> What is this

�01[23:15] <Ankur> Had you developed more games except this?

[23:15] <Anubhav> Dont know

[23:16] <@MurielGodoi> http://dev.laptop.org/git?p=projects/memorygame

[23:16] <@MurielGodoi> I developed simple games

[23:16] <@MurielGodoi> like educational hangmans :)

�01[23:16] <Ankur> Coold

�01[23:16] <Ankur> *Cool

[23:17] <@MurielGodoi> if you take a look at Memorize code:

[23:18] <@MurielGodoi> game.py is the control

[23:18] <@MurielGodoi> model.py is model :D

[23:18] <@MurielGodoi> and cardtable.py and scoreboard are the view

[23:19] <@MurielGodoi> activity.py instantiate the modules and link them

[23:19] <@MurielGodoi> there is no problem

�01[23:21] <Ankur> I hope all questions to this meeting are over from my side. Deepank and
Anubhav, if you haver any questions, you can aks them

[23:21] <@MurielGodoi> My master thesis is about computers in education, but not exactly
about educational games
about educational games


[23:22] <Anubhav> no.. not from my side
'''<Anubhav>''' no.. not from my side


[23:22] <@MurielGodoi> I worked on using AI to create analogies to increase the quality of
'''<MurielGodoi>''' I worked on using AI to create analogies to increase the quality of
learning material. Federal University of São Carlos, here in Brazil
learning mateiral


'''<Ankur>''' @Muriel: That seems interesting. But, being from Electronics and
[23:22] <@MurielGodoi> Federal University of São Carlos, here in Brazil

�01[23:23] <Ankur> @Muriel: That seems interesting. But, being from Electronics and
Communication branch, I will not have this subject (AI). Deepank and Anubhav will have it.
Communication branch, I will not have this subject (AI). Deepank and Anubhav will have it.


'''<deepank>''' Not from my side also


'''<Ankur>''' :(
[23:23] <deepank> Not from my side also


'''<MurielGodoi>''' That is very interesting subject. well... backing to your meeting .. Are we missing something?
�01[23:23] <Ankur> :(


'''<Ankur>''' Okay then we can have our next meeting next week, same day? Is it okay?
[23:24] <@MurielGodoi> That is very interesting subject.


'''<MurielGodoi>''' That is fine for me


[23:25] <@MurielGodoi> well... backing to your meeting ... :)
'''<MurielGodoi>''' in the meantime, mail me if you have any questions


'''<Ankur>''' @Deepank/Anubahv : Please put up the contents of the meeting. I have
[23:25] <@MurielGodoi> Are we missing something?

�01[23:26] <Ankur> Okay then we can have our next meeting next week, same day? Is it okay?

[23:27] <@MurielGodoi> That is fine for me

[23:27] <@MurielGodoi> in the meantime, mail me if you have any questions

�01[23:27] <Ankur> @Deepank/Anubahv : Please put up the contents of the meeting. I have
pasted on your personal query page.
pasted on your personal query page.


Session Close: Tue Feb 26 23:27:55 2008



Session Start: Tue Feb 26 23:27:55 2008

Session Ident: #olpc-foodforce

�02[23:27] * Disconnected

�02[23:28] * Attempting to rejoin channel #olpc-foodforce

�03[23:28] * Rejoined channel #olpc-foodforce

Session Close: Tue Feb 26 23:28:12 2008



Session Start: Tue Feb 26 23:28:12 2008

Session Ident: #olpc-foodforce

�02[23:28] * Disconnected

�02[23:28] * Attempting to rejoin channel #olpc-foodforce

�03[23:28] * Rejoined channel #olpc-foodforce

�01[23:28] <Ankur> So, Muriel, Thanks for your time.

[23:28] <@MurielGodoi> I thanks you for your work guys

Session Close: Tue Feb 26 23:29:08 2008



Session Start: Tue Feb 26 23:29:08 2008

Session Ident: #olpc-foodforce

�02[23:29] * Disconnected

�02[23:29] * Attempting to rejoin channel #olpc-foodforce

�03[23:29] * Rejoined channel #olpc-foodforce

[23:29] <@MurielGodoi> the meeting is over


Session Close: Tue Feb 26 23:29:47 2008
Session Close: Tue Feb 26 23:29:47 2008

Revision as of 05:15, 5 April 2008

Session Start: Tue Feb 26 22:17:15 2008 Session Start: Tue Feb 26 22:17:15 2008


<Ankur> So, you checked the code?

<MurielGodoi> yep

<Ankur> Any suggestions you would like to give before moving further?


<MurielGodoi> Just one thing about the resources...

<Ankur> Yes.

<MurielGodoi> sounds weird the two quantities (market and village) in the same object. resources is a abstract class. It should works for the village stock, market stock or N stock

<Ankur> This way, we can keep the qts of Village and Market in two different variables whenever there is a change in some resource value.

<MurielGodoi> tomorrow when trading between players it might also works

<MurielGodoi> http://en.wikipedia.org/wiki/Model-view-controller

<MurielGodoi> I was thinking about use that architectural pattern

<Ankur> I am opening it.

<MurielGodoi> when reading realize what we should have in our model. We wont use the frameworks... just the patterns

<Ankur> Adding an additional layer named controller between data and user interface will increase flexibility. Controller will independently deal with both of them. Right? So, Muriel, We have to make an additional controller.py file for that

<MurielGodoi> right

<MurielGodoi> http://en.wikipedia.org/wiki/Model-view-controller

<MurielGodoi> That is the architectural pattern. model is what we are coding now. control will be the game engine and view the gui and village simulation. the gui sends the interaction to the controller, the controller changes the model and the model updates the gui

<Ankur> Exactly

<MurielGodoi> there is not much game logic in the model

<MurielGodoi> as price calculus

<Ankur> ?

<MurielGodoi> it is a controller responsibility

<Ankur> Yes, we just have the information about Resources, Indicators, and Facilities classes. these will be further controlled by the controller. GUI will be directly linked with the controller which we have to design, which will update our model.py file and further model.py will update out GUI. Similar to MVC model

<Ankur> GUI- > Controller.py -> Model.py -> GUI Right?

<MurielGodoi> right

<Ankur> So for Game Engine developement, do we have to start from the bottom. i.e. for controller.py file?

<MurielGodoi> sure

<Ankur> Could you please give us some pointers for that?

<MurielGodoi> you also should take a look at GObjects, that is to send messages

<Ankur> from GUI to Model.py Right?

<MurielGodoi> to communicate model-view-control, gui to control, control to model, and model to view

<Ankur> If it is already there, We can create a controller class out of this file, basically this being handling the messages and other events triggered by the user. According to the events performed, Model file will be updated.

<MurielGodoi> yep it is good a new file for that and maybe a refactoring of FoodForce2.py too. strip the view from there to view.py

<Ankur> And after some fixed interval after modification of model.py file, The corresponding changesd in the GUI will be made. This will be done direclty as model.py-> view.? or again controller in between?

<MurielGodoi> the model should send messages to the view them something changes

<MurielGodoi> nop, model-> view, take a look at MVC diagram

<Ankur> thats an indirect association! It will be through model->controller first, I think?, if we follow this. Otherwise to make things simpler, we can directly link them. as you told model->view

<MurielGodoi> there is no unique solution... I am trying to see the effects

<Ankur> Yes, but we will have the one which makes things simpler and faster. So our next task should be to link View to model.py through a controller. Right?

<MurielGodoi> right

<Ankur> where for controller.py we will get help from GObjects and Foodforce2. And to extract ths code for view from foodforce2.py to a new file view.py. Right?

<MurielGodoi> GObject will helps at all. it will send and receive messages between the modules. FoodForce2.py will be the main one to run and launch the game and more three files: view.py, control.py and model.py. FoodForce2.py will instantiate the modules and link then you will realize how FoodForce2.py will link them when reading about the GObjects

<Ankur> Okay


<MurielGodoi> I used that architeture at Memorize game

<Ankur> What is this

<Ankur> Had you developed more games except this?

<MurielGodoi> http://dev.laptop.org/git?p=projects/memorygame

<MurielGodoi> I developed simple games. like educational hangmans :)

<Ankur> Cool

<MurielGodoi> if you take a look at Memorize code: game.py is the control. model.py is model and cardtable.py and scoreboard are the view, activity.py instantiate the modules and link them, there is no problem

<Ankur> I hope all questions to this meeting are over from my side. Deepank and Anubhav, if you have any questions, you can ask them

<MurielGodoi> My master thesis is about computers in education, but not exactly about educational games

<Anubhav> no.. not from my side

<MurielGodoi> I worked on using AI to create analogies to increase the quality of learning material. Federal University of São Carlos, here in Brazil

<Ankur> @Muriel: That seems interesting. But, being from Electronics and Communication branch, I will not have this subject (AI). Deepank and Anubhav will have it.

<deepank> Not from my side also

<Ankur> :(

<MurielGodoi> That is very interesting subject. well... backing to your meeting .. Are we missing something?

<Ankur> Okay then we can have our next meeting next week, same day? Is it okay?

<MurielGodoi> That is fine for me

<MurielGodoi> in the meantime, mail me if you have any questions

<Ankur> @Deepank/Anubahv : Please put up the contents of the meeting. I have pasted on your personal query page.


Session Close: Tue Feb 26 23:29:47 2008