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

Overview
Comment:Who even knows what i did
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256:78745a50666be917ca1a59a5f7ccfc2435e33353482f2a05fa811d98a743a660
User & Date: sarah 2018-05-18 17:54:02
Context
2018-05-18
18:00
only move once check-in: c9e28386b7 user: zie tags: trunk
17:54
Who even knows what i did check-in: 78745a5066 user: sarah tags: trunk
17:13
Myclass update check-in: c0cd8ac6e6 user: sarah tags: trunk
Changes

Changes to finalproject/finalproject.cpp.

92
93
94
95
96
97
98
99
100


101


102



103












104
105
106
107
108
109
110
{ public:  
      
void BoundedMove(char UserMove)
{ 

cout<<"xPos="<<xPos<<" yPos="<<yPos;

if ((xPos> 0)&& (xPos<20) || (yPos>0) || (yPos<40))
{


 


      



      Move(UserMove);












     
}

}


};







|

>
>
|
>
>
|
>
>
>

>
>
>
>
>
>
>
>
>
>
>
>







92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
{ public:  
      
void BoundedMove(char UserMove)
{ 

cout<<"xPos="<<xPos<<" yPos="<<yPos;

if ((xPos> -1) && (xPos<20) && (yPos>-1) && (yPos<40))
{
 cout << "xPos <1, resetting back to 1";
       if(xPos<1)
 {
       xPos=1;
       Move(UserMove);
 }
 if(xPos>19)
{cout << "xPos > 19, resetting back to 19";
      xPos=19;
      Move(UserMove);
}
if(yPos<0)
{cout << "yPos< 0, resetting back to 0";
      yPos=0;
      Move(UserMove);
}
if(yPos>39)
{cout << "yPos > 39, resetting back to 39";
      yPos=39;
      Move(UserMove);
}
Move(UserMove);
     
}

}


};