Advertisement
Guest User

Untitled

a guest
Feb 20th, 2020
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.95 KB | None | 0 0
  1. void transition(char cPokemon1,char cPokemon2,char *c1stName,char *c2ndName){
  2. char *cPokemonName1, *cPokemonName2;
  3. switch(cPokemon1){
  4. case 'e': cPokemonName1 = "Entei";
  5. case 'm': cPokemonName1 = "Milotic";
  6. case 't': cPokemonName1 = "Torterra";
  7. case 'p': cPokemonName1 = "Pikachu";
  8. case 'g': cPokemonName1 = "Groudon";
  9. case 'l': cPokemonName1 = "Lapras";
  10. case 's': cPokemonName1 = "Stunfisk";
  11. }
  12. switch(cPokemon2){
  13. case 'e': cPokemonName2 = "Entei";
  14. case 'm': cPokemonName2 = "Milotic";
  15. case 't': cPokemonName2 = "Torterra";
  16. case 'p': cPokemonName2 = "Pikachu";
  17. case 'g': cPokemonName2 = "Groudon";
  18. case 'l': cPokemonName2 = "Lapras";
  19. case 's': cPokemonName2 = "Stunfisk";
  20. }
  21. printf("\n\n\n\t %5s's Pokemon \t\t\t\t\t\t\t %5s's Pokemon \n", c1stName,c2ndName);
  22. printf("\t ============= \t\t\t\t\t\t\t =============\n");
  23. printf("\t|| ||\t\t\t\t\t\t\t|| || \n");
  24. printf("\t|| %s ||\t\t\t\t\t\t\t|| %s || \n",cPokemonName1, cPokemonName2 );
  25. printf("\t|| ||\t\t\t\t\t\t\t|| || \n");
  26. printf("\t ============= \t\t\t\t\t\t\t =============\n\n\n");
  27. printf("\t\t\t\t\t\t\t\t ==============================================\n");
  28. printf("\t\t\t\t\t\t\t\t|| INSTRUCTION ||\n");
  29. printf("\t\t\t\t\t\t\t\t|| ||\n");
  30. printf("\t\t\t\t\t\t\t\t|| Player 1 will make the first attack, ||\n");
  31. printf("\t\t\t\t\t\t\t\t|| then Player 2. Each Player will take ||\n");
  32. printf("\t\t\t\t\t\t\t\t|| turns selecting moves their Pokemon ||\n");
  33. printf("\t\t\t\t\t\t\t\t|| will use. The objective is to defeat ||\n");
  34. printf("\t\t\t\t\t\t\t\t|| your opponent's pokemon and win. ||\n");
  35. printf("\t\t\t\t\t\t\t\t|| ||\n");
  36. printf("\t\t\t\t\t\t\t\t ==============================================\n\n");
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement