arrays - Combinatorial game in java -
i've got assignment computer science class. i've been thinking answer more 2 weeks without success decided give try in here. game consists of 4 cia agents using 4 adjacent telephone booths. arrive @ set of booths 1 @ time, following rules: 1 - agent chooses booth has 2 neighbouring booths unoccupied (this includes booths @ edges of set); 2 - if condition above isn't met, agent chooses booth has 1 neighbouring booth unoccupied; and 3 - if both conditions fail, agent chooses booth. there 8 different ways of occupying booths given 4 agents , 4 booths, according rules. example: agent #1 occupies first booth (the left edge one), agent #2 occupies third booth (from left right), agent #3 occupies fourth booth , agent #4 occupies second booth. we asked write code counts number of ways 19 agents occupy 19 booths, according these rules. my natural choice problem creating array of boolean, in false represents vacant booth , true represents occupied booth: public...