Food Force/Meeting Logs3: Difference between revisions
(New page: #olpc-foodforce [INFO] Channel view for “#olpc-foodforce” opened. -->| YOU (deepank) have joined #olpc-foodforce =-= Mode #olpc-foodforce +ns by niven.freenode.net -->| Anubhav (n=...) |
No edit summary |
||
Line 1: | Line 1: | ||
#olpc-foodforce |
#olpc-foodforce |
||
[INFO] Channel view for “#olpc-foodforce” opened. |
[INFO] Channel view for “#olpc-foodforce” opened. |
||
-->| YOU (deepank) have joined #olpc-foodforce |
-->| YOU (deepank) have joined #olpc-foodforce |
||
=-= Mode #olpc-foodforce +ns by niven.freenode.net |
=-= Mode #olpc-foodforce +ns by niven.freenode.net |
||
-->| Anubhav (n=chatzill@221.134.239.87) has joined #olpc-foodforce |
-->| Anubhav (n=chatzill@221.134.239.87) has joined #olpc-foodforce |
||
<Anubhav> Hi deepank |
<Anubhav> Hi deepank |
||
<deepank> Hi |
<deepank> Hi |
||
<Anubhav> Still no one, this is not good |
<Anubhav> Still no one, this is not good |
||
<deepank> Lets wait for others .... |
<deepank> Lets wait for others .... |
||
<deepank> yea ..... do sum other wrk while keeping this window open |
<deepank> yea ..... do sum other wrk while keeping this window open |
||
<Anubhav> affirmative |
<Anubhav> affirmative |
||
-->| MurielGodoi (n=msgodoi@189-68-25-237.dsl.telesp.net.br) has joined #olpc-foodforce |
-->| MurielGodoi (n=msgodoi@189-68-25-237.dsl.telesp.net.br) has joined #olpc-foodforce |
||
<deepank> Hi Muriel |
<deepank> Hi Muriel |
||
<MurielGodoi> hi Deepank, hi Anubhav |
<MurielGodoi> hi Deepank, hi Anubhav |
||
<Anubhav> Hello sir |
<Anubhav> Hello sir |
||
<deepank> I will send you the class diagram's scanned pic thru email |
<deepank> I will send you the class diagram's scanned pic thru email |
||
<deepank> please tell us if we are going wrong somewhere |
<deepank> please tell us if we are going wrong somewhere |
||
<MurielGodoi> ok |
<MurielGodoi> ok |
||
<Anubhav> yes sir, we had made the class diagram on paper. Please check it |
<Anubhav> yes sir, we had made the class diagram on paper. Please check it |
||
<deepank> There is one more thing that I would like to discuss about. |
<deepank> There is one more thing that I would like to discuss about. |
||
<MurielGodoi> sure, what it is about? |
<MurielGodoi> sure, what it is about? |
||
<deepank> There is no population parameter in the game |
<deepank> There is no population parameter in the game |
||
<deepank> So, are we going to assume a constant population for the village or should we take it as a parameter |
<deepank> So, are we going to assume a constant population for the village or should we take it as a parameter |
||
<Anubhav> yes sir, We beliebe that their should be some population paramter that should be displayed during gameplay. |
<Anubhav> yes sir, We beliebe that their should be some population paramter that should be displayed during gameplay. |
||
=== murielgodoi is online. |
=== murielgodoi is online. |
||
<Anubhav> A rise in population would then demand for more facilities, thus making the game more of real life simualtion game |
<Anubhav> A rise in population would then demand for more facilities, thus making the game more of real life simualtion game |
||
<deepank> High growth rates of population in countries like India and Brazil is one reason why there are frequent draughts |
<deepank> High growth rates of population in countries like India and Brazil is one reason why there are frequent draughts |
||
<deepank> and famines |
<deepank> and famines |
||
<MurielGodoi> At once I also though that... it is important, but I think we can assume a constant population in our first version |
<MurielGodoi> At once I also though that... it is important, but I think we can assume a constant population in our first version |
||
<deepank> Ok we can keep it as a feature to be added; but it can be easily added ... and can depend on the level of education and family control measures being taken |
<deepank> Ok we can keep it as a feature to be added; but it can be easily added ... and can depend on the level of education and family control measures being taken |
||
<MurielGodoi> it is easily added but not so simple to code the effects. |
<MurielGodoi> it is easily added but not so simple to code the effects. |
||
<Anubhav> yes sir, I was thinking of the same, |
<Anubhav> yes sir, I was thinking of the same, |
||
<deepank> Actually I did not take a look at the code of the human beings moving around.... am i missing something |
|||
<deepank> Actually I did not take a look at the code of the human beings |
|||
moving around.... am i missing something |
|||
<deepank> If a human being is being represented by an object |
<deepank> If a human being is being represented by an object |
||
<Anubhav> because the code needs to be changed a lot when we add that growing population factor , as it will have many dependencies with it |
<Anubhav> because the code needs to be changed a lot when we add that growing population factor , as it will have many dependencies with it |
||
<deepank> the number of instances of human being object can be directly proportional to population |
<deepank> the number of instances of human being object can be directly proportional to population |
||
<MurielGodoi> sure it is. In that animation I was just testing the perfomance |
<MurielGodoi> sure it is. In that animation I was just testing the perfomance |
||
<Anubhav> @Deepank: have you mailed the Class Diagram to sir |
<Anubhav> @Deepank: have you mailed the Class Diagram to sir |
||
<deepank> yes |
<deepank> yes |
||
* MurielGodoi is cheking... |
* MurielGodoi is cheking... |
||
<MurielGodoi> The image is not so clear, but from that I can read.. |
<MurielGodoi> The image is not so clear, but from that I can read.. |
||
<MurielGodoi> why is indicator just related to facilities? |
<MurielGodoi> why is indicator just related to facilities? |
||
<MurielGodoi> s/facilities/resources |
<MurielGodoi> s/facilities/resources |
||
<deepank> Indicator is related to resources only and not to facilties |
<deepank> Indicator is related to resources only and not to facilties |
||
<deepank> we thought that facilities will contribute to resources |
<deepank> we thought that facilities will contribute to resources |
||
<deepank> and thus indirectly to indicaors |
<deepank> and thus indirectly to indicaors |
||
<MurielGodoi> s/facilities/resources means replace facilities for indicator.. i typed wrong |
|||
<MurielGodoi> s/facilities/resources means replace facilities for indicator.. i |
|||
typed wrong |
|||
<MurielGodoi> deepank: so for us desn't matter that we buy or produce a resource |
<MurielGodoi> deepank: so for us desn't matter that we buy or produce a resource |
||
<MurielGodoi> ? |
<MurielGodoi> ? |
||
-->| Anubhav_Agarwal (n=chatzill@221.134.239.87) has joined #olpc-foodforce |
-->| Anubhav_Agarwal (n=chatzill@221.134.239.87) has joined #olpc-foodforce |
||
<deepank> Muriel: buying or selling resources will automatically relate to indicators. |
<deepank> Muriel: buying or selling resources will automatically relate to indicators. |
||
<MurielGodoi> the village stock is different from having infra-structure |
<MurielGodoi> the village stock is different from having infra-structure |
||
<MurielGodoi> mainly to health... we can have medicines and do not have an hospital |
<MurielGodoi> mainly to health... we can have medicines and do not have an hospital |
||
<deepank> Right |
<deepank> Right |
||
<MurielGodoi> so hospital should have effects in health indicator |
<MurielGodoi> so hospital should have effects in health indicator |
||
<MurielGodoi> I think indicator should relate both... resource and facilities |
<MurielGodoi> I think indicator should relate both... resource and facilities |
||
<deepank> right |
<deepank> right |
||
<Anubhav_Agarwal> joinyes |
<Anubhav_Agarwal> joinyes |
||
<Anubhav_Agarwal> yes |
<Anubhav_Agarwal> yes |
||
<MurielGodoi> and facilities are more important (more weigh ) than resources |
<MurielGodoi> and facilities are more important (more weigh ) than resources |
||
<deepank> ok |
<deepank> ok |
||
|<-- Anubhav_Agarwal has left freenode (Read error: 104 (Connection reset by peer)) |
|<-- Anubhav_Agarwal has left freenode (Read error: 104 (Connection reset by peer)) |
||
<MurielGodoi> we also need to check the relation type |
<MurielGodoi> we also need to check the relation type |
||
<MurielGodoi> composition or aggregation |
<MurielGodoi> composition or aggregation |
||
<deepank> Yes that was one thing in which I wanted to take your opinion |
<deepank> Yes that was one thing in which I wanted to take your opinion |
||
<MurielGodoi> I am checking my software engenniring... my last class about that was 6 years ago :) |
<MurielGodoi> I am checking my software engenniring... my last class about that was 6 years ago :) |
||
-->| Anubhav_Agarwal (n=chatzill@221.134.239.87) has joined #olpc-foodforce |
-->| Anubhav_Agarwal (n=chatzill@221.134.239.87) has joined #olpc-foodforce |
||
<deepank> What do you think |
<deepank> What do you think |
||
<deepank> I was thinking of a main container class containing all these objects and helping integration among all these |
|||
<deepank> I was thinking of a main container class containing all these |
|||
objects and helping integration among all these |
|||
<MurielGodoi> maybe just association. with labels and multiplicity? |
<MurielGodoi> maybe just association. with labels and multiplicity? |
||
<deepank> n:1 everywhere |
<deepank> n:1 everywhere |
||
<deepank> as n resources and n indicators affect 1 indicator |
<deepank> as n resources and n indicators affect 1 indicator |
||
<MurielGodoi> maybe not |
<MurielGodoi> maybe not |
||
<MurielGodoi> houses can affect housing and health |
<MurielGodoi> houses can affect housing and health |
||
|<-- Anubhav_Agarwal has left freenode (Read error: 104 (Connection reset by peer)) |
|<-- Anubhav_Agarwal has left freenode (Read error: 104 (Connection reset by peer)) |
||
-->| Anubhav_Agarwal (n=chatzill@221.134.239.87) has joined #olpc-foodforce |
-->| Anubhav_Agarwal (n=chatzill@221.134.239.87) has joined #olpc-foodforce |
||
<deepank> Right |
<deepank> Right |
||
<deepank> I overlooked that |
<deepank> I overlooked that |
||
<deepank> How do we model it in Python |
<deepank> How do we model it in Python |
||
<MurielGodoi> for instance. Health indicator can have an array of (facility, weight) tuples |
<MurielGodoi> for instance. Health indicator can have an array of (facility, weight) tuples |
||
|<-- Anubhav_Agarwal has left freenode (Read error: 104 (Connection reset by peer)) |
|<-- Anubhav_Agarwal has left freenode (Read error: 104 (Connection reset by peer)) |
||
-->| Anubhav_Agarwal (n=chatzill@221.134.239.87) has joined #olpc-foodforce |
-->| Anubhav_Agarwal (n=chatzill@221.134.239.87) has joined #olpc-foodforce |
||
<MurielGodoi> and another one for resources |
<MurielGodoi> and another one for resources |
||
<deepank> yes |
<deepank> yes |
||
|<-- Anubhav has left freenode (Read error: 110 (Connection timed out)) |
|<-- Anubhav has left freenode (Read error: 110 (Connection timed out)) |
||
=-= Anubhav_Agarwal is now known as Anubhav |
=-= Anubhav_Agarwal is now known as Anubhav |
||
<MurielGodoi> putting weighs on it we can balance the importance of facilities and resources stock in the indicator |
<MurielGodoi> putting weighs on it we can balance the importance of facilities and resources stock in the indicator |
||
<deepank> yes |
<deepank> yes |
||
|<-- Anubhav has left freenode (Read error: 104 (Connection reset by peer)) |
|<-- Anubhav has left freenode (Read error: 104 (Connection reset by peer)) |
||
<MurielGodoi> Could someone list for me the Resources methods, I can't read it here. |
<MurielGodoi> Could someone list for me the Resources methods, I can't read it here. |
||
-->| Anubhav_Agarwal (n=chatzill@221.134.239.87) has joined #olpc-foodforce |
-->| Anubhav_Agarwal (n=chatzill@221.134.239.87) has joined #olpc-foodforce |
||
<deepank> Update_Value(string name, int value) |
<deepank> Update_Value(string name, int value) |
||
=-= Anubhav_Agarwal is now known as Anubhav |
=-= Anubhav_Agarwal is now known as Anubhav |
||
<deepank> void Buy(String name, int value) |
<deepank> void Buy(String name, int value) |
||
<deepank> void Sell(String name, int value) |
<deepank> void Sell(String name, int value) |
||
<deepank> int GetValue() |
<deepank> int GetValue() |
||
<deepank> void SetValue() |
<deepank> void SetValue() |
||
<MurielGodoi> by value you mean, price or quantity? |
<MurielGodoi> by value you mean, price or quantity? |
||
<deepank> quantity |
<deepank> quantity |
||
<Anubhav> quantity |
<Anubhav> quantity |
||
<MurielGodoi> value is a generic name.. try to make attributes name as clear as possible |
<MurielGodoi> value is a generic name.. try to make attributes name as clear as possible |
||
<Anubhav> we wont be changing the price I believe |
<Anubhav> we wont be changing the price I believe |
||
<deepank> ok |
<deepank> ok |
||
|<-- Anubhav has left freenode (Read error: 104 (Connection reset by peer)) |
|<-- Anubhav has left freenode (Read error: 104 (Connection reset by peer)) |
||
-->| Anubhav_Agarwal (n=chatzill@221.134.239.87) has joined #olpc-foodforce |
-->| Anubhav_Agarwal (n=chatzill@221.134.239.87) has joined #olpc-foodforce |
||
=-= Anubhav_Agarwal is now known as Anubhav |
=-= Anubhav_Agarwal is now known as Anubhav |
||
<MurielGodoi> Anubhav: What happens to the price when we have low quantity of some product on sale? |
|||
<MurielGodoi> Anubhav: What happens to the price when we have low quantity of some |
|||
product on sale? |
|||
<Anubhav> price goes up |
<Anubhav> price goes up |
||
<Anubhav> in the market as demand is more , supply is less |
<Anubhav> in the market as demand is more , supply is less |
||
|<-- Anubhav has left freenode (Read error: 104 (Connection reset by peer)) |
|||
|<-- Anubhav has left freenode (Read error: 104 (Connection r |
|||
eset by peer)) |
|||
-->| Anubhav_Agarwal (n=chatzill@221.134.239.87) has joined #olpc-foodforce |
-->| Anubhav_Agarwal (n=chatzill@221.134.239.87) has joined #olpc-foodforce |
||
=-= Anubhav_Agarwal is now known as Anubhav |
=-= Anubhav_Agarwal is now known as Anubhav |
||
<MurielGodoi> perfect, I am trying to make you think about the scenario, not give you just the answers |
<MurielGodoi> perfect, I am trying to make you think about the scenario, not give you just the answers |
||
<MurielGodoi> about the model... think about what you modeled in Resouces class. It is a unique resouce or a entire stock? |
<MurielGodoi> about the model... think about what you modeled in Resouces class. It is a unique resouce or a entire stock? |
||
<deepank> entire stock of a resource |
<deepank> entire stock of a resource |
||
<Anubhav> each object will be 1 resource |
<Anubhav> each object will be 1 resource |
||
<deepank> i.e. Wood has one object. |
<deepank> i.e. Wood has one object. |
||
<deepank> and it represents entire stock of the village |
<deepank> and it represents entire stock of the village |
||
<MurielGodoi> so why did you add name in all methods? |
<MurielGodoi> so why did you add name in all methods? |
||
|<-- Anubhav has left freenode (Read error: 104 (Connection reset by peer)) |
|<-- Anubhav has left freenode (Read error: 104 (Connection reset by peer)) |
||
<MurielGodoi> in Resource there is a mix of Resouce and stock methods |
<MurielGodoi> in Resource there is a mix of Resouce and stock methods |
||
-->| Anubhav_Agarwal (n=chatzill@221.134.239.87) has joined #olpc-foodforce |
-->| Anubhav_Agarwal (n=chatzill@221.134.239.87) has joined #olpc-foodforce |
||
=-= Anubhav_Agarwal is now known as Anubhav |
=-= Anubhav_Agarwal is now known as Anubhav |
||
<deepank> Wood is the name of the resource |
<deepank> Wood is the name of the resource |
||
<deepank> What is the difference between the two? |
<deepank> What is the difference between the two? |
||
<MurielGodoi> deepank: but in that object do you have just a string to save that |
<MurielGodoi> deepank: but in that object do you have just a string to save that |
||
<deepank> Yes, or we can change it to a global enum for saving memory. |
<deepank> Yes, or we can change it to a global enum for saving memory. |
||
<MurielGodoi> deepank: so how will you handle several resources there |
<MurielGodoi> deepank: so how will you handle several resources there |
||
<deepank> Each resource will have one object; with a name associated with it |
<deepank> Each resource will have one object; with a name associated with it |
||
<MurielGodoi> at first every class name should be in singular otherwise you be modeling a group, not a object |
|||
<MurielGodoi> at first every class name should be in singular otherwise you be |
|||
modeling a group, not a object |
|||
<MurielGodoi> deepank: object or instance? |
<MurielGodoi> deepank: object or instance? |
||
|<-- Anubhav has left freenode (Read error: 104 (Connection reset by peer)) |
|<-- Anubhav has left freenode (Read error: 104 (Connection reset by peer)) |
||
<deepank> We have a class Resource. |
<deepank> We have a class Resource. |
||
=== anubhav is offline. |
=== anubhav is offline. |
||
<deepank> Now it has object - Wood with name as wood and value as quantity |
<deepank> Now it has object - Wood with name as wood and value as quantity |
||
<deepank> Another Object Food |
<deepank> Another Object Food |
||
<MurielGodoi> so you will create 1 instance for each resource |
<MurielGodoi> so you will create 1 instance for each resource |
||
<deepank> similarly and so on |
<deepank> similarly and so on |
||
<deepank> yes |
<deepank> yes |
||
<MurielGodoi> if each resource have you own instance why you need name in all methods |
|||
<MurielGodoi> if each resource have you own instance why you need name in all |
|||
methods |
|||
<MurielGodoi> food = Resouce('food', 15) |
<MurielGodoi> food = Resouce('food', 15) |
||
<MurielGodoi> food.setValue('food', 20) |
<MurielGodoi> food.setValue('food', 20) |
||
<deepank> Yes |
<deepank> Yes |
||
<deepank> Actually we are introducing redundancy |
<deepank> Actually we are introducing redundancy |
||
<deepank> we will remove the name |
<deepank> we will remove the name |
||
<MurielGodoi> deepank: you got it |
<MurielGodoi> deepank: you got it |
||
<MurielGodoi> I think a class for stock should be fine |
<MurielGodoi> I think a class for stock should be fine |
||
<deepank> I do not understand the difference between resource and stock |
<deepank> I do not understand the difference between resource and stock |
||
<MurielGodoi> stock is a set of resources |
<MurielGodoi> stock is a set of resources |
||
-->| Anubhav_Agarwal (n=chatzill@221.134.239.87) has joined #olpc-foodforce |
-->| Anubhav_Agarwal (n=chatzill@221.134.239.87) has joined #olpc-foodforce |
||
=-= Anubhav_Agarwal is now known as Anubhav |
=-= Anubhav_Agarwal is now known as Anubhav |
||
<MurielGodoi> not just one |
<MurielGodoi> not just one |
||
<deepank> Yes, then we can keep name as a parameter |
<deepank> Yes, then we can keep name as a parameter |
||
|<-- Anubhav has left freenode (Read error: 104 (Connection reset by peer)) |
|<-- Anubhav has left freenode (Read error: 104 (Connection reset by peer)) |
||
-->| Anubhav_Agarwal (n=chatzill@221.134.239.87) has joined #olpc-foodforce |
-->| Anubhav_Agarwal (n=chatzill@221.134.239.87) has joined #olpc-foodforce |
||
<MurielGodoi> you just need to decide beetwen model a stock or resources |
<MurielGodoi> you just need to decide beetwen model a stock or resources |
||
=-= Anubhav_Agarwal is now known as Anubhav |
=-= Anubhav_Agarwal is now known as Anubhav |
||
=== anubhav is online. |
=== anubhav is online. |
||
<MurielGodoi> if you are modeling a stock so you should keep the name parameter |
<MurielGodoi> if you are modeling a stock so you should keep the name parameter |
||
|<-- Anubhav has left freenode (Read error: 104 (Connection reset by peer)) |
|<-- Anubhav has left freenode (Read error: 104 (Connection reset by peer)) |
||
<MurielGodoi> that's happened to Anubhav |
<MurielGodoi> that's happened to Anubhav |
||
-->| Anuabhav__ (i=Anubhav@221.134.239.87) has joined #olpc-foodforce |
-->| Anuabhav__ (i=Anubhav@221.134.239.87) has joined #olpc-foodforce |
||
<MurielGodoi> ? |
<MurielGodoi> ? |
||
<MurielGodoi> ok |
<MurielGodoi> ok |
||
<deepank> If we keep stock, then we will need to make all the parameters as arrays |
|||
<deepank> If we keep stock, then we will need to make all the parameters as |
|||
arrays |
|||
-->| Anubhav_Agarwal (n=chatzill@221.134.239.87) has joined #olpc-foodforce |
-->| Anubhav_Agarwal (n=chatzill@221.134.239.87) has joined #olpc-foodforce |
||
=-= Anubhav_Agarwal is now known as Anubhav |
=-= Anubhav_Agarwal is now known as Anubhav |
||
<deepank> Anubhav is facing net problems |
<deepank> Anubhav is facing net problems |
||
<MurielGodoi> ok... sometimes I also face it in Brazil |
<MurielGodoi> ok... sometimes I also face it in Brazil |
||
<MurielGodoi> i think you are inclined to model a stock |
<MurielGodoi> i think you are inclined to model a stock |
||
<MurielGodoi> in that case, you should rename your class as stock |
<MurielGodoi> in that case, you should rename your class as stock |
||
<deepank> No on the contrary, I think I should model as resource only, my habit of C programming is coming in the way :) |
|||
<deepank> No on the contrary, I think I should model as resource only, my |
|||
habit of C programming is coming in the way :) |
|||
<MurielGodoi> and stock should have a list of tuples (resouce, quantity) |
<MurielGodoi> and stock should have a list of tuples (resouce, quantity) |
||
<MurielGodoi> so, you should rename you class to Resource (not Resources) and remove name from the methos |
|||
<MurielGodoi> so, you should rename you class to Resource (not Resources) and |
|||
remove name from the methos |
|||
<deepank> Yes |
<deepank> Yes |
||
<MurielGodoi> you should realize that there is no unique solution when modeling |
<MurielGodoi> you should realize that there is no unique solution when modeling |
||
<deepank> So, the changes are : |
<deepank> So, the changes are : |
||
<deepank> 1. Association from Facilities to Indicator |
<deepank> 1. Association from Facilities to Indicator |
||
<deepank> 2. Remove name as a parameter |
<deepank> 2. Remove name as a parameter |
||
<Anubhav> yes |
<Anubhav> yes |
||
<deepank> 3. Introduce a model to change prices |
<deepank> 3. Introduce a model to change prices |
||
<Anubhav> ok |
<Anubhav> ok |
||
<MurielGodoi> we will need to instantiate two list of resouces: |
<MurielGodoi> we will need to instantiate two list of resouces: |
||
<MurielGodoi> 1 for the village |
<MurielGodoi> 1 for the village |
||
<MurielGodoi> 1 for the market |
<MurielGodoi> 1 for the market |
||
<MurielGodoi> each one should have their own quantity and unit price |
<MurielGodoi> each one should have their own quantity and unit price |
||
<deepank> yes |
<deepank> yes |
||
<MurielGodoi> everything okay about resoures? |
<MurielGodoi> everything okay about resoures? |
||
<deepank> but price will be decided in the market |
<deepank> but price will be decided in the market |
||
<deepank> oh sorry got confused |
<deepank> oh sorry got confused |
||
<deepank> yes |
<deepank> yes |
||
<MurielGodoi> deepank: The game enngine will chenge that |
<MurielGodoi> deepank: The game enngine will chenge that |
||
<MurielGodoi> about facilities |
<MurielGodoi> about facilities |
||
<deepank> Yes |
<deepank> Yes |
||
<MurielGodoi> each facilities have a list of produced and consumed resources on each turn |
|||
<MurielGodoi> each facilities have a list of produced and consumed resources on |
|||
each turn |
|||
<MurielGodoi> we should model that |
<MurielGodoi> we should model that |
||
<deepank> void update_level(void) |
<deepank> void update_level(void) |
||
|<-- Anuabhav__ has left freenode (Read error: 104 (Connection reset by peer)) |
|<-- Anuabhav__ has left freenode (Read error: 104 (Connection reset by peer)) |
||
|<-- Anubhav has left freenode (Read error: 104 (Connection reset by peer)) |
|<-- Anubhav has left freenode (Read error: 104 (Connection reset by peer)) |
||
<deepank> void update_number(int) |
<deepank> void update_number(int) |
||
<deepank> name should be removed |
<deepank> name should be removed |
||
=== anubhav is offline. |
=== anubhav is offline. |
||
<MurielGodoi> deepank: perfect.. the same case... are you modeling a Facilitie not the entire city |
|||
<MurielGodoi> deepank: perfect.. the same case... are you modeling a Facilitie not |
|||
the entire city |
|||
<MurielGodoi> facility.addProduction('rice', 100) |
<MurielGodoi> facility.addProduction('rice', 100) |
||
<MurielGodoi> facility.addProduction('beans', 64) |
<MurielGodoi> facility.addProduction('beans', 64) |
||
<MurielGodoi> facility.remProduction('beans') |
<MurielGodoi> facility.remProduction('beans') |
||
<MurielGodoi> facility.addConsumption('beans', 20) |
<MurielGodoi> facility.addConsumption('beans', 20) |
||
<MurielGodoi> and so on |
<MurielGodoi> and so on |
||
<deepank> We have not added any production methods |
<deepank> We have not added any production methods |
||
<deepank> Will a user be able to define this? |
<deepank> Will a user be able to define this? |
||
<MurielGodoi> not the user... the game engine |
<MurielGodoi> not the user... the game engine |
||
-->| Anubhav (i=Anubhav@221.134.239.87) has joined #olpc-foodforce |
-->| Anubhav (i=Anubhav@221.134.239.87) has joined #olpc-foodforce |
||
|<-- Anubhav has left freenode (Read error: 104 (Connection reset by peer)) |
|<-- Anubhav has left freenode (Read error: 104 (Connection reset by peer)) |
||
<MurielGodoi> that is your next step after the model |
<MurielGodoi> that is your next step after the model |
||
<MurielGodoi> the game engine will perform the changes on each turn.. update resources, prices, facilities and indicators |
|||
<MurielGodoi> the game engine will perform the changes on each turn.. update |
|||
resources, prices, facilities and indicators |
|||
-->| Anubhav (i=Anubhav@221.134.239.87) has joined #olpc-foodforce |
-->| Anubhav (i=Anubhav@221.134.239.87) has joined #olpc-foodforce |
||
|<-- Anubhav has left freenode (Read error: 104 (Connection reset by peer)) |
|<-- Anubhav has left freenode (Read error: 104 (Connection reset by peer)) |
||
<deepank> Should a game engine decide that rice is to be grown and that too in a particular quantity? We were taking a single food item :) |
|||
<deepank> Should a game engine decide that rice is to be grown and that too in |
|||
<MurielGodoi> the animation and gui elements will read these that and update the screen |
|||
a particular quantity? We were taking a single food item :) |
|||
<MurielGodoi> the animation and gui elements will read these that and update the |
|||
screen |
|||
<deepank> yes. |
<deepank> yes. |
||
-->| Anubhav (i=Anubhav@221.134.239.87) has joined #olpc-foodforce |
-->| Anubhav (i=Anubhav@221.134.239.87) has joined #olpc-foodforce |
||
|<-- Anubhav has left freenode (Read error: 104 (Connection reset by peer)) |
|<-- Anubhav has left freenode (Read error: 104 (Connection reset by peer)) |
||
<MurielGodoi> the user will invest on rice farm |
<MurielGodoi> the user will invest on rice farm |
||
<MurielGodoi> but the rice production will be calculate by the game engine |
<MurielGodoi> but the rice production will be calculate by the game engine |
||
<deepank> yes |
<deepank> yes |
||
-->| Anubhav (i=Anubhav@221.134.239.87) has joined #olpc-foodforce |
-->| Anubhav (i=Anubhav@221.134.239.87) has joined #olpc-foodforce |
||
<deepank> which will depend on the trainig of the villagers |
<deepank> which will depend on the trainig of the villagers |
||
|<-- Anubhav has left freenode (Read error: 104 (Connection reset by peer)) |
|<-- Anubhav has left freenode (Read error: 104 (Connection reset by peer)) |
||
<MurielGodoi> so we can set variables like season, training, weather |
<MurielGodoi> so we can set variables like season, training, weather |
||
<MurielGodoi> perfect |
<MurielGodoi> perfect |
||
<MurielGodoi> now we are working on the model which will store the game data |
<MurielGodoi> now we are working on the model which will store the game data |
||
<deepank> yes we can introduce weather and seasonal changes in the game |
<deepank> yes we can introduce weather and seasonal changes in the game |
||
<MurielGodoi> the game engine will contain the definitions to change it |
<MurielGodoi> the game engine will contain the definitions to change it |
||
<deepank> So, I think Facility is fine; we need to remove the name. |
<deepank> So, I think Facility is fine; we need to remove the name. |
||
-->| Anubhav_Agarwal (n=chatzill@221.134.239.87) has joined #olpc-foodforce |
-->| Anubhav_Agarwal (n=chatzill@221.134.239.87) has joined #olpc-foodforce |
||
=-= Anubhav_Agarwal is now known as Anubhav |
=-= Anubhav_Agarwal is now known as Anubhav |
||
<MurielGodoi> and add the methods above too |
<MurielGodoi> and add the methods above too |
||
<deepank> Yes |
<deepank> Yes |
||
<MurielGodoi> to allow game engine set it |
<MurielGodoi> to allow game engine set it |
||
|<-- Anubhav has left freenode (Read error: 104 (Connection reset by peer)) |
|<-- Anubhav has left freenode (Read error: 104 (Connection reset by peer)) |
||
<MurielGodoi> facilities and Indicators should have the method 'turn' |
<MurielGodoi> facilities and Indicators should have the method 'turn' |
||
<MurielGodoi> the game engine will can it to all facilities, which will update resouces |
|||
<MurielGodoi> the game engine will can it to all facilities, which will update |
|||
resouces |
|||
<deepank> the update_value function is working as next_turn |
<deepank> the update_value function is working as next_turn |
||
<MurielGodoi> nice, so just rename it to next_turn, it is a clear name |
<MurielGodoi> nice, so just rename it to next_turn, it is a clear name |
||
<deepank> ok |
<deepank> ok |
||
-->| Anubhav_Agarwal (n=chatzill@221.134.227.102) has joined #olpc-foodforce |
-->| Anubhav_Agarwal (n=chatzill@221.134.227.102) has joined #olpc-foodforce |
||
=-= Anubhav_Agarwal is now known as Anubhav |
=-= Anubhav_Agarwal is now known as Anubhav |
||
<MurielGodoi> Missed I something? |
<MurielGodoi> Missed I something? |
||
<deepank> I do not think so, only Indicator left to discuss |
<deepank> I do not think so, only Indicator left to discuss |
||
<MurielGodoi> sure.... |
<MurielGodoi> sure.... |
||
<MurielGodoi> the same for the name in methods |
<MurielGodoi> the same for the name in methods |
||
<deepank> yes |
<deepank> yes |
||
-->| Anubhav_Agarwal (n=chatzill@221.134.224.83) has joined #olpc-foodforce |
-->| Anubhav_Agarwal (n=chatzill@221.134.224.83) has joined #olpc-foodforce |
||
<MurielGodoi> and add methods to set the weights |
<MurielGodoi> and add methods to set the weights |
||
-->| Anubhav___ (i=Anubhav@221.134.224.83) has joined #olpc-foodforce |
-->| Anubhav___ (i=Anubhav@221.134.224.83) has joined #olpc-foodforce |
||
<MurielGodoi> health_indicator.addWeight('hospital', 50) |
<MurielGodoi> health_indicator.addWeight('hospital', 50) |
||
<MurielGodoi> health_indicator.addWeight('housing ', 20) |
<MurielGodoi> health_indicator.addWeight('housing ', 20) |
||
<deepank> Weights are static information |
<deepank> Weights are static information |
||
<MurielGodoi> yep |
<MurielGodoi> yep |
||
<MurielGodoi> they will allow us better balance the game further |
<MurielGodoi> they will allow us better balance the game further |
||
<deepank> ok. |
<deepank> ok. |
||
=== anubhav is online. |
=== anubhav is online. |
||
<MurielGodoi> we are done about the diagram? |
<MurielGodoi> we are done about the diagram? |
||
<MurielGodoi> are we done about the diagram? |
<MurielGodoi> are we done about the diagram? |
||
|<-- Anubhav_Agarwal has left freenode (Read error: 104 (Connection reset by peer)) |
|||
|<-- Anubhav_Agarwal has left freenode (Read error: 104 (Connection reset by |
|||
peer)) |
|||
|<-- Anubhav___ has left freenode (Read error: 104 (Connection reset by peer)) |
|<-- Anubhav___ has left freenode (Read error: 104 (Connection reset by peer)) |
||
<deepank> Yes, we will make a new diagram incorporating changes and also make the code now |
|||
<deepank> Yes, we will make a new diagram incorporating changes and also make |
|||
the code now |
|||
-->| Anubhav___ (i=Anubhav@221.134.224.83) has joined #olpc-foodforce |
-->| Anubhav___ (i=Anubhav@221.134.224.83) has joined #olpc-foodforce |
||
<Anubhav___> ok |
<Anubhav___> ok |
||
<MurielGodoi> about the repository |
<MurielGodoi> about the repository |
||
<deepank> did you get any replies |
<deepank> did you get any replies |
||
<MurielGodoi> nop |
<MurielGodoi> nop |
||
<MurielGodoi> ivan is a security chief and is also handling all repository request |
<MurielGodoi> ivan is a security chief and is also handling all repository request |
||
-->| Anubhav_Agarwal (n=chatzill@221.134.224.83) has joined #olpc-foodforce |
-->| Anubhav_Agarwal (n=chatzill@221.134.224.83) has joined #olpc-foodforce |
||
<MurielGodoi> olpc was going to get a guy for that, but I donno how is it now |
<MurielGodoi> olpc was going to get a guy for that, but I donno how is it now |
||
|<-- Anubhav_Agarwal has left freenode (Read error: 104 (Connection reset by peer)) |
|||
|<-- Anubhav_Agarwal has left freenode (Read error: 104 (Connection reset by |
|||
peer)) |
|||
<deepank> Ok, so please tell us when the repository is setup. |
<deepank> Ok, so please tell us when the repository is setup. |
||
<MurielGodoi> ok |
<MurielGodoi> ok |
||
|<-- Anubhav___ has left freenode (Read error: 104 (Connection reset by peer)) |
|<-- Anubhav___ has left freenode (Read error: 104 (Connection reset by peer)) |
||
<MurielGodoi> Anything else? |
<MurielGodoi> Anything else? |
||
-->| Anubhav___ (i=Anubhav@221.134.224.83) has joined #olpc-foodforce |
-->| Anubhav___ (i=Anubhav@221.134.224.83) has joined #olpc-foodforce |
||
|<-- Anubhav___ has left freenode (Read error: 104 (Connection reset by peer)) |
|<-- Anubhav___ has left freenode (Read error: 104 (Connection reset by peer)) |
||
<deepank> Let us decide a meeting day. When will you be free for the next meeting |
|||
<deepank> Let us decide a meeting day. When will you be free for the next |
|||
<MurielGodoi> An note, as you have been already noticed, my English isn't so good, I am trying to improve it, so I apologise if I seen rude in any talk, that wasn't my intention |
|||
meeting |
|||
<MurielGodoi> When you think you can update the diagram model and do the changes in the code? |
|||
<deepank> No you haven't been rude. Yes, sometimes, I do misunderstand your comments though :) |
|||
<MurielGodoi> An note, as you have been already noticed, my English isn't so good, |
|||
I am trying to improve it, so I apologise if I seen rude in any talk, that wasn't my |
|||
intention |
|||
<MurielGodoi> When you think you can update the diagram model and do the changes |
|||
in the code? |
|||
<deepank> No you haven't been rude. Yes, sometimes, I do misunderstand your |
|||
comments though :) |
|||
-->| Anu__ (i=Anubhav@221.134.224.83) has joined #olpc-foodforce |
-->| Anu__ (i=Anubhav@221.134.224.83) has joined #olpc-foodforce |
||
<deepank> I can do it till day after tomorrow. I am going for a competition tomorrow; so won't get much time |
|||
<deepank> I can do it till day after tomorrow. I am going for a competition |
|||
<MurielGodoi> deepank: ok sorry, i will try to be more clear to minimize it, thanks for the comment |
|||
tomorrow; so won't get much time |
|||
<MurielGodoi> deepank: ok sorry, i will try to be more clear to minimize it, |
|||
thanks for the comment |
|||
<MurielGodoi> monday? |
<MurielGodoi> monday? |
||
|<-- Anu__ has left freenode (Read error: 104 (Connection reset by peer)) |
|<-- Anu__ has left freenode (Read error: 104 (Connection reset by peer)) |
||
<deepank> Yes Monday is fine for me, in the meantime, tell me about the game engine, so I can get acquainted with the current code. |
|||
<deepank> Yes Monday is fine for me, in the meantime, tell me about the game |
|||
engine, so I can get acquainted with the current code. |
|||
<MurielGodoi> ok.. will try to think more about how to do that. |
<MurielGodoi> ok.. will try to think more about how to do that. |
||
<MurielGodoi> I still don't have that clear in mind |
<MurielGodoi> I still don't have that clear in mind |
||
<deepank> Ok. I will think about it too. We will discuss more on Monday |
<deepank> Ok. I will think about it too. We will discuss more on Monday |
||
<MurielGodoi> Have you learned Model-View-Control model |
<MurielGodoi> Have you learned Model-View-Control model |
||
<MurielGodoi> ? |
<MurielGodoi> ? |
||
<MurielGodoi> View will be the animation and gui |
<MurielGodoi> View will be the animation and gui |
||
<MurielGodoi> model is that we are doing now |
<MurielGodoi> model is that we are doing now |
||
<deepank> No, not in the formal course studies. Can you give me some links for it. |
|||
<deepank> No, not in the formal course studies. Can you give me some links for |
|||
it. |
|||
<MurielGodoi> and control will be the game engine |
<MurielGodoi> and control will be the game engine |
||
<MurielGodoi> ok... I will find some links and mail you |
<MurielGodoi> ok... I will find some links and mail you |
||
<deepank> ok. |
<deepank> ok. |
||
<deepank> Ok. So, we will meet again on Monday. Till then work for me : |
<deepank> Ok. So, we will meet again on Monday. Till then work for me : |
||
<MurielGodoi> so next meeting monday 11:30est |
<MurielGodoi> so next meeting monday 11:30est |
||
<deepank> 1. Make code of model |
<deepank> 1. Make code of model |
||
<deepank> 2. Read up on links given by you |
<deepank> 2. Read up on links given by you |
||
<deepank> Your work |
<deepank> Your work |
||
<deepank> 1. Repository |
<deepank> 1. Repository |
||
<deepank> 2. Thinking about game engine |
<deepank> 2. Thinking about game engine |
||
<MurielGodoi> 2. contact the artwork guys |
<MurielGodoi> 2. contact the artwork guys |
||
|<-- Anubhav has left freenode (Read error: 110 (Connection timed out)) |
|<-- Anubhav has left freenode (Read error: 110 (Connection timed out)) |
||
<deepank> Yes |
<deepank> Yes |
||
<MurielGodoi> and send oyu the links |
<MurielGodoi> and send oyu the links |
||
<MurielGodoi> deepank: could you please attach the meetings log to wiki? |
<MurielGodoi> deepank: could you please attach the meetings log to wiki? |
||
<deepank> Yes i will do that |
<deepank> Yes i will do that |
||
<MurielGodoi> thanks for all your work |
<MurielGodoi> thanks for all your work |
||
<deepank> Thanks |
<deepank> Thanks |
||
<MurielGodoi> the meeting is over |
<MurielGodoi> the meeting is over |
||
<MurielGodoi> see you guys |
<MurielGodoi> see you guys |
||
<deepank> Good Night |
<deepank> Good Night |
||
<MurielGodoi> night |
<MurielGodoi> night |
Revision as of 19:26, 20 February 2008
- olpc-foodforce
[INFO] Channel view for “#olpc-foodforce” opened.
-->| YOU (deepank) have joined #olpc-foodforce
=-= Mode #olpc-foodforce +ns by niven.freenode.net
-->| Anubhav (n=chatzill@221.134.239.87) has joined #olpc-foodforce
<Anubhav> Hi deepank
<deepank> Hi
<Anubhav> Still no one, this is not good
<deepank> Lets wait for others ....
<deepank> yea ..... do sum other wrk while keeping this window open
<Anubhav> affirmative
-->| MurielGodoi (n=msgodoi@189-68-25-237.dsl.telesp.net.br) has joined #olpc-foodforce
<deepank> Hi Muriel
<MurielGodoi> hi Deepank, hi Anubhav
<Anubhav> Hello sir
<deepank> I will send you the class diagram's scanned pic thru email
<deepank> please tell us if we are going wrong somewhere
<MurielGodoi> ok
<Anubhav> yes sir, we had made the class diagram on paper. Please check it
<deepank> There is one more thing that I would like to discuss about.
<MurielGodoi> sure, what it is about?
<deepank> There is no population parameter in the game
<deepank> So, are we going to assume a constant population for the village or should we take it as a parameter
<Anubhav> yes sir, We beliebe that their should be some population paramter that should be displayed during gameplay.
=== murielgodoi is online.
<Anubhav> A rise in population would then demand for more facilities, thus making the game more of real life simualtion game
<deepank> High growth rates of population in countries like India and Brazil is one reason why there are frequent draughts
<deepank> and famines
<MurielGodoi> At once I also though that... it is important, but I think we can assume a constant population in our first version
<deepank> Ok we can keep it as a feature to be added; but it can be easily added ... and can depend on the level of education and family control measures being taken
<MurielGodoi> it is easily added but not so simple to code the effects.
<Anubhav> yes sir, I was thinking of the same,
<deepank> Actually I did not take a look at the code of the human beings moving around.... am i missing something
<deepank> If a human being is being represented by an object
<Anubhav> because the code needs to be changed a lot when we add that growing population factor , as it will have many dependencies with it
<deepank> the number of instances of human being object can be directly proportional to population
<MurielGodoi> sure it is. In that animation I was just testing the perfomance
<Anubhav> @Deepank: have you mailed the Class Diagram to sir
<deepank> yes
* MurielGodoi is cheking...
<MurielGodoi> The image is not so clear, but from that I can read..
<MurielGodoi> why is indicator just related to facilities?
<MurielGodoi> s/facilities/resources
<deepank> Indicator is related to resources only and not to facilties
<deepank> we thought that facilities will contribute to resources
<deepank> and thus indirectly to indicaors
<MurielGodoi> s/facilities/resources means replace facilities for indicator.. i typed wrong
<MurielGodoi> deepank: so for us desn't matter that we buy or produce a resource
<MurielGodoi> ?
-->| Anubhav_Agarwal (n=chatzill@221.134.239.87) has joined #olpc-foodforce
<deepank> Muriel: buying or selling resources will automatically relate to indicators.
<MurielGodoi> the village stock is different from having infra-structure
<MurielGodoi> mainly to health... we can have medicines and do not have an hospital
<deepank> Right
<MurielGodoi> so hospital should have effects in health indicator
<MurielGodoi> I think indicator should relate both... resource and facilities
<deepank> right
<Anubhav_Agarwal> joinyes
<Anubhav_Agarwal> yes
<MurielGodoi> and facilities are more important (more weigh ) than resources
<deepank> ok
|<-- Anubhav_Agarwal has left freenode (Read error: 104 (Connection reset by peer))
<MurielGodoi> we also need to check the relation type
<MurielGodoi> composition or aggregation
<deepank> Yes that was one thing in which I wanted to take your opinion
<MurielGodoi> I am checking my software engenniring... my last class about that was 6 years ago :)
-->| Anubhav_Agarwal (n=chatzill@221.134.239.87) has joined #olpc-foodforce
<deepank> What do you think
<deepank> I was thinking of a main container class containing all these objects and helping integration among all these
<MurielGodoi> maybe just association. with labels and multiplicity?
<deepank> n:1 everywhere
<deepank> as n resources and n indicators affect 1 indicator
<MurielGodoi> maybe not
<MurielGodoi> houses can affect housing and health
|<-- Anubhav_Agarwal has left freenode (Read error: 104 (Connection reset by peer))
-->| Anubhav_Agarwal (n=chatzill@221.134.239.87) has joined #olpc-foodforce
<deepank> Right
<deepank> I overlooked that
<deepank> How do we model it in Python
<MurielGodoi> for instance. Health indicator can have an array of (facility, weight) tuples
|<-- Anubhav_Agarwal has left freenode (Read error: 104 (Connection reset by peer))
-->| Anubhav_Agarwal (n=chatzill@221.134.239.87) has joined #olpc-foodforce
<MurielGodoi> and another one for resources
<deepank> yes
|<-- Anubhav has left freenode (Read error: 110 (Connection timed out))
=-= Anubhav_Agarwal is now known as Anubhav
<MurielGodoi> putting weighs on it we can balance the importance of facilities and resources stock in the indicator
<deepank> yes
|<-- Anubhav has left freenode (Read error: 104 (Connection reset by peer))
<MurielGodoi> Could someone list for me the Resources methods, I can't read it here.
-->| Anubhav_Agarwal (n=chatzill@221.134.239.87) has joined #olpc-foodforce
<deepank> Update_Value(string name, int value)
=-= Anubhav_Agarwal is now known as Anubhav
<deepank> void Buy(String name, int value)
<deepank> void Sell(String name, int value)
<deepank> int GetValue()
<deepank> void SetValue()
<MurielGodoi> by value you mean, price or quantity?
<deepank> quantity
<Anubhav> quantity
<MurielGodoi> value is a generic name.. try to make attributes name as clear as possible
<Anubhav> we wont be changing the price I believe
<deepank> ok
|<-- Anubhav has left freenode (Read error: 104 (Connection reset by peer))
-->| Anubhav_Agarwal (n=chatzill@221.134.239.87) has joined #olpc-foodforce
=-= Anubhav_Agarwal is now known as Anubhav
<MurielGodoi> Anubhav: What happens to the price when we have low quantity of some product on sale?
<Anubhav> price goes up
<Anubhav> in the market as demand is more , supply is less
|<-- Anubhav has left freenode (Read error: 104 (Connection r eset by peer))
-->| Anubhav_Agarwal (n=chatzill@221.134.239.87) has joined #olpc-foodforce
=-= Anubhav_Agarwal is now known as Anubhav
<MurielGodoi> perfect, I am trying to make you think about the scenario, not give you just the answers
<MurielGodoi> about the model... think about what you modeled in Resouces class. It is a unique resouce or a entire stock?
<deepank> entire stock of a resource
<Anubhav> each object will be 1 resource
<deepank> i.e. Wood has one object.
<deepank> and it represents entire stock of the village
<MurielGodoi> so why did you add name in all methods?
|<-- Anubhav has left freenode (Read error: 104 (Connection reset by peer))
<MurielGodoi> in Resource there is a mix of Resouce and stock methods
-->| Anubhav_Agarwal (n=chatzill@221.134.239.87) has joined #olpc-foodforce
=-= Anubhav_Agarwal is now known as Anubhav
<deepank> Wood is the name of the resource
<deepank> What is the difference between the two?
<MurielGodoi> deepank: but in that object do you have just a string to save that
<deepank> Yes, or we can change it to a global enum for saving memory.
<MurielGodoi> deepank: so how will you handle several resources there
<deepank> Each resource will have one object; with a name associated with it
<MurielGodoi> at first every class name should be in singular otherwise you be modeling a group, not a object
<MurielGodoi> deepank: object or instance?
|<-- Anubhav has left freenode (Read error: 104 (Connection reset by peer))
<deepank> We have a class Resource.
=== anubhav is offline.
<deepank> Now it has object - Wood with name as wood and value as quantity
<deepank> Another Object Food
<MurielGodoi> so you will create 1 instance for each resource
<deepank> similarly and so on
<deepank> yes
<MurielGodoi> if each resource have you own instance why you need name in all methods
<MurielGodoi> food = Resouce('food', 15)
<MurielGodoi> food.setValue('food', 20)
<deepank> Yes
<deepank> Actually we are introducing redundancy
<deepank> we will remove the name
<MurielGodoi> deepank: you got it
<MurielGodoi> I think a class for stock should be fine
<deepank> I do not understand the difference between resource and stock
<MurielGodoi> stock is a set of resources
-->| Anubhav_Agarwal (n=chatzill@221.134.239.87) has joined #olpc-foodforce
=-= Anubhav_Agarwal is now known as Anubhav
<MurielGodoi> not just one
<deepank> Yes, then we can keep name as a parameter
|<-- Anubhav has left freenode (Read error: 104 (Connection reset by peer))
-->| Anubhav_Agarwal (n=chatzill@221.134.239.87) has joined #olpc-foodforce
<MurielGodoi> you just need to decide beetwen model a stock or resources
=-= Anubhav_Agarwal is now known as Anubhav
=== anubhav is online.
<MurielGodoi> if you are modeling a stock so you should keep the name parameter
|<-- Anubhav has left freenode (Read error: 104 (Connection reset by peer))
<MurielGodoi> that's happened to Anubhav
-->| Anuabhav__ (i=Anubhav@221.134.239.87) has joined #olpc-foodforce
<MurielGodoi> ?
<MurielGodoi> ok
<deepank> If we keep stock, then we will need to make all the parameters as arrays
-->| Anubhav_Agarwal (n=chatzill@221.134.239.87) has joined #olpc-foodforce
=-= Anubhav_Agarwal is now known as Anubhav
<deepank> Anubhav is facing net problems
<MurielGodoi> ok... sometimes I also face it in Brazil
<MurielGodoi> i think you are inclined to model a stock
<MurielGodoi> in that case, you should rename your class as stock
<deepank> No on the contrary, I think I should model as resource only, my habit of C programming is coming in the way :)
<MurielGodoi> and stock should have a list of tuples (resouce, quantity)
<MurielGodoi> so, you should rename you class to Resource (not Resources) and remove name from the methos
<deepank> Yes
<MurielGodoi> you should realize that there is no unique solution when modeling
<deepank> So, the changes are :
<deepank> 1. Association from Facilities to Indicator
<deepank> 2. Remove name as a parameter
<Anubhav> yes
<deepank> 3. Introduce a model to change prices
<Anubhav> ok
<MurielGodoi> we will need to instantiate two list of resouces:
<MurielGodoi> 1 for the village
<MurielGodoi> 1 for the market
<MurielGodoi> each one should have their own quantity and unit price
<deepank> yes
<MurielGodoi> everything okay about resoures?
<deepank> but price will be decided in the market
<deepank> oh sorry got confused
<deepank> yes
<MurielGodoi> deepank: The game enngine will chenge that
<MurielGodoi> about facilities
<deepank> Yes
<MurielGodoi> each facilities have a list of produced and consumed resources on each turn
<MurielGodoi> we should model that
<deepank> void update_level(void)
|<-- Anuabhav__ has left freenode (Read error: 104 (Connection reset by peer))
|<-- Anubhav has left freenode (Read error: 104 (Connection reset by peer))
<deepank> void update_number(int)
<deepank> name should be removed
=== anubhav is offline.
<MurielGodoi> deepank: perfect.. the same case... are you modeling a Facilitie not the entire city
<MurielGodoi> facility.addProduction('rice', 100)
<MurielGodoi> facility.addProduction('beans', 64)
<MurielGodoi> facility.remProduction('beans')
<MurielGodoi> facility.addConsumption('beans', 20)
<MurielGodoi> and so on
<deepank> We have not added any production methods
<deepank> Will a user be able to define this?
<MurielGodoi> not the user... the game engine
-->| Anubhav (i=Anubhav@221.134.239.87) has joined #olpc-foodforce
|<-- Anubhav has left freenode (Read error: 104 (Connection reset by peer))
<MurielGodoi> that is your next step after the model
<MurielGodoi> the game engine will perform the changes on each turn.. update resources, prices, facilities and indicators
-->| Anubhav (i=Anubhav@221.134.239.87) has joined #olpc-foodforce
|<-- Anubhav has left freenode (Read error: 104 (Connection reset by peer))
<deepank> Should a game engine decide that rice is to be grown and that too in a particular quantity? We were taking a single food item :)
<MurielGodoi> the animation and gui elements will read these that and update the screen
<deepank> yes.
-->| Anubhav (i=Anubhav@221.134.239.87) has joined #olpc-foodforce |<-- Anubhav has left freenode (Read error: 104 (Connection reset by peer))
<MurielGodoi> the user will invest on rice farm
<MurielGodoi> but the rice production will be calculate by the game engine
<deepank> yes
-->| Anubhav (i=Anubhav@221.134.239.87) has joined #olpc-foodforce
<deepank> which will depend on the trainig of the villagers
|<-- Anubhav has left freenode (Read error: 104 (Connection reset by peer))
<MurielGodoi> so we can set variables like season, training, weather
<MurielGodoi> perfect
<MurielGodoi> now we are working on the model which will store the game data
<deepank> yes we can introduce weather and seasonal changes in the game
<MurielGodoi> the game engine will contain the definitions to change it
<deepank> So, I think Facility is fine; we need to remove the name.
-->| Anubhav_Agarwal (n=chatzill@221.134.239.87) has joined #olpc-foodforce
=-= Anubhav_Agarwal is now known as Anubhav
<MurielGodoi> and add the methods above too
<deepank> Yes
<MurielGodoi> to allow game engine set it
|<-- Anubhav has left freenode (Read error: 104 (Connection reset by peer))
<MurielGodoi> facilities and Indicators should have the method 'turn'
<MurielGodoi> the game engine will can it to all facilities, which will update resouces
<deepank> the update_value function is working as next_turn
<MurielGodoi> nice, so just rename it to next_turn, it is a clear name
<deepank> ok
-->| Anubhav_Agarwal (n=chatzill@221.134.227.102) has joined #olpc-foodforce
=-= Anubhav_Agarwal is now known as Anubhav
<MurielGodoi> Missed I something?
<deepank> I do not think so, only Indicator left to discuss
<MurielGodoi> sure....
<MurielGodoi> the same for the name in methods
<deepank> yes
-->| Anubhav_Agarwal (n=chatzill@221.134.224.83) has joined #olpc-foodforce
<MurielGodoi> and add methods to set the weights
-->| Anubhav___ (i=Anubhav@221.134.224.83) has joined #olpc-foodforce
<MurielGodoi> health_indicator.addWeight('hospital', 50)
<MurielGodoi> health_indicator.addWeight('housing ', 20)
<deepank> Weights are static information
<MurielGodoi> yep
<MurielGodoi> they will allow us better balance the game further
<deepank> ok.
=== anubhav is online.
<MurielGodoi> we are done about the diagram?
<MurielGodoi> are we done about the diagram?
|<-- Anubhav_Agarwal has left freenode (Read error: 104 (Connection reset by peer))
|<-- Anubhav___ has left freenode (Read error: 104 (Connection reset by peer))
<deepank> Yes, we will make a new diagram incorporating changes and also make the code now
-->| Anubhav___ (i=Anubhav@221.134.224.83) has joined #olpc-foodforce
<Anubhav___> ok
<MurielGodoi> about the repository
<deepank> did you get any replies
<MurielGodoi> nop
<MurielGodoi> ivan is a security chief and is also handling all repository request
-->| Anubhav_Agarwal (n=chatzill@221.134.224.83) has joined #olpc-foodforce
<MurielGodoi> olpc was going to get a guy for that, but I donno how is it now
|<-- Anubhav_Agarwal has left freenode (Read error: 104 (Connection reset by peer))
<deepank> Ok, so please tell us when the repository is setup.
<MurielGodoi> ok
|<-- Anubhav___ has left freenode (Read error: 104 (Connection reset by peer))
<MurielGodoi> Anything else?
-->| Anubhav___ (i=Anubhav@221.134.224.83) has joined #olpc-foodforce
|<-- Anubhav___ has left freenode (Read error: 104 (Connection reset by peer))
<deepank> Let us decide a meeting day. When will you be free for the next meeting
<MurielGodoi> An note, as you have been already noticed, my English isn't so good, I am trying to improve it, so I apologise if I seen rude in any talk, that wasn't my intention
<MurielGodoi> When you think you can update the diagram model and do the changes in the code?
<deepank> No you haven't been rude. Yes, sometimes, I do misunderstand your comments though :)
-->| Anu__ (i=Anubhav@221.134.224.83) has joined #olpc-foodforce
<deepank> I can do it till day after tomorrow. I am going for a competition tomorrow; so won't get much time
<MurielGodoi> deepank: ok sorry, i will try to be more clear to minimize it, thanks for the comment
<MurielGodoi> monday?
|<-- Anu__ has left freenode (Read error: 104 (Connection reset by peer))
<deepank> Yes Monday is fine for me, in the meantime, tell me about the game engine, so I can get acquainted with the current code.
<MurielGodoi> ok.. will try to think more about how to do that.
<MurielGodoi> I still don't have that clear in mind
<deepank> Ok. I will think about it too. We will discuss more on Monday
<MurielGodoi> Have you learned Model-View-Control model
<MurielGodoi> ?
<MurielGodoi> View will be the animation and gui
<MurielGodoi> model is that we are doing now
<deepank> No, not in the formal course studies. Can you give me some links for it.
<MurielGodoi> and control will be the game engine
<MurielGodoi> ok... I will find some links and mail you
<deepank> ok.
<deepank> Ok. So, we will meet again on Monday. Till then work for me :
<MurielGodoi> so next meeting monday 11:30est
<deepank> 1. Make code of model
<deepank> 2. Read up on links given by you
<deepank> Your work
<deepank> 1. Repository
<deepank> 2. Thinking about game engine
<MurielGodoi> 2. contact the artwork guys
|<-- Anubhav has left freenode (Read error: 110 (Connection timed out))
<deepank> Yes
<MurielGodoi> and send oyu the links
<MurielGodoi> deepank: could you please attach the meetings log to wiki?
<deepank> Yes i will do that
<MurielGodoi> thanks for all your work
<deepank> Thanks
<MurielGodoi> the meeting is over
<MurielGodoi> see you guys
<deepank> Good Night
<MurielGodoi> night