Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:for loop correct
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256:e7db9f3a9217f0e8025af63c3179a0c1fb0d9a86f604e5037b6260455aa787c3
User & Date: sarah 2018-05-18 19:42:26
Context
2018-05-18
22:01
Update check-in: f62cfa3a0f user: sarah tags: trunk
19:42
for loop correct check-in: e7db9f3a92 user: sarah tags: trunk
19:36
Working on Cookies check-in: 689de052ff user: sarah tags: trunk
Changes

Changes to finalproject/finalproject.cpp.

97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
...
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
    public:
    int CookieNumber;
      void cookies()
      {
            
            CookieNumber = 1 + rand() % 10;
           
            for(int CookieNumber)
            { int RandomxPos ;
            RandomxPos= rand()%19 ;    
            int RandomyPos;
            RandomyPos= rand()%39;     

            Screen[RandomxPos][RandomyPos]='o';
            if(Screen[RandomxPos][RandomyPos]='o')
................................................................................
            }

            }
      }

      void endgame()
      {
            if( )
            cout<< "congrats you picked up "<< CookieNumber<<". Feel free to play again.";
            exit(0);
      }

      void BoundedMove(char UserMove)
      {








|







 







<







97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
...
116
117
118
119
120
121
122

123
124
125
126
127
128
129
    public:
    int CookieNumber;
      void cookies()
      {
            
            CookieNumber = 1 + rand() % 10;
           
            for (int i=0; i < CookieNumber; i++)
            { int RandomxPos ;
            RandomxPos= rand()%19 ;    
            int RandomyPos;
            RandomyPos= rand()%39;     

            Screen[RandomxPos][RandomyPos]='o';
            if(Screen[RandomxPos][RandomyPos]='o')
................................................................................
            }

            }
      }

      void endgame()
      {

            cout<< "congrats you picked up "<< CookieNumber<<". Feel free to play again.";
            exit(0);
      }

      void BoundedMove(char UserMove)
      {