Advertisement
Kenthris

Help

Apr 30th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. int fastest;
  2. do{
  3. for(i=0;i<sumi;i++){
  4. for(j=0;j<sumj;j++){
  5. possible[i][j]=array[i][j];
  6. }
  7. }
  8. if(turn==0){
  9. fastest=0;//where 0 is self
  10. for(i=0;i<players;i++){//finds the fastest
  11. if(path[i]<path[fastest]){//set obstacles
  12. fastest = i;
  13. }
  14. }
  15. if(fastest!=0){
  16. //call obstacles
  17. }
  18. }
  19.  
  20. }while (turn!=4);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement