home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 366.lha / CosmicConquest_v1.035 / berserker.c < prev    next >
Text File  |  1990-04-07  |  534b  |  15 lines

  1. berserker(pla)
  2. int pla;
  3.   {
  4.   struct NCommand c;
  5.   int i;
  6.   c.com=DECLARE;
  7.   c.par[1]=WAR;
  8.   for(c.par[0]=0;c.par[0]<PLAYERNO;c.par[0]++) if(general.relation[pla][c.par[0]]!=WAR && pla!=c.par[0]) do_command(pla,&c);
  9.   /* Only mini routine programmed */
  10.   /* Fully implemented in the rest of the code and only waiting to be programmed */
  11.   /* with any interesting strategical idea */
  12.   /* (This core routine and reading Fred Saberhagens Berserker books should give */
  13.   /* you an idea of their 'strategy'(yet to be programmed) )*/
  14.   }
  15.