%% ------------------------------------------------------------------ %% MESSAGES mesg = | NatString = String that is interpreted as an Natural Number okay = %% ------------------------------------------------------------------ %% FIRST HAND fsth = squd %% ------------------------------------------------------------------ %% TURN turn = bool %% is card on deck? stck %% the entire stack slst %% the list of bomber squadrons attackable by AXIS slst %% the list of bomber squadrons attackable by ALLIES %% ------------------------------------------------------------------ %% BOOLEAN bool = | %% ------------------------------------------------------------------ %% STACK stck = card ... %% ------------------------------------------------------------------ %% LIST OF SQUADRONS slst = squd ... %% ------------------------------------------------------------------ %% SQUADRONs squd = card ... %% ------------------------------------------------------------------ %% CARDS card = | | String123 = "1" | "2" | "3" String456 = String123 | "4" | "5" | "6" %% ------------------------------------------------------------------ %% FINAL MESSAGE done = borc slst atck ... | card slst atck ... atck = squd %% the fighters and ... squd %% ... the bombers that they attack %% ------------------------------------------------------------------ %% TEST CASES case = fsth %% the first hand for the player borc %% the top-most card on the deck or if empty stck %% the stack slst %% the AXIS attackable list slst %% the ALLIES attackable list done %% the expected result borc = | card