@@ -280,14 +280,10 @@ fn append_playaction(
280280 ( Players :: Blank , _, _) => panic ! ( "Unreachable state." ) ,
281281
282282 //Winning scores
283- ( Players :: PlayerX , Players :: PlayerX , Players :: PlayerX ) => {
283+ ( Players :: PlayerX , Players :: PlayerX , Players :: PlayerX )
284+ | ( Players :: PlayerO , Players :: PlayerO , Players :: PlayerO ) => {
284285 play_actions. positions . push ( appendee. position ) ;
285286 }
286- ( Players :: PlayerX , Players :: PlayerX , _) => { }
287- ( Players :: PlayerO , Players :: PlayerO , Players :: PlayerO ) => {
288- play_actions. positions . push ( appendee. position ) ;
289- }
290- ( Players :: PlayerO , Players :: PlayerO , _) => { }
291287
292288 //Non-winning to Winning scores
293289 ( Players :: PlayerX , _, Players :: PlayerX ) => {
@@ -302,21 +298,18 @@ fn append_playaction(
302298 }
303299
304300 //Losing to Neutral scores
305- ( Players :: PlayerX , Players :: PlayerO , Players :: Blank ) => {
306- play_actions. side = Players :: Blank ;
307- play_actions. positions . clear ( ) ;
308- play_actions. positions . push ( appendee. position ) ;
309- }
310-
311- ( Players :: PlayerO , Players :: PlayerX , Players :: Blank ) => {
301+ ( Players :: PlayerX , Players :: PlayerO , Players :: Blank )
302+ | ( Players :: PlayerO , Players :: PlayerX , Players :: Blank ) => {
312303 play_actions. side = Players :: Blank ;
313304 play_actions. positions . clear ( ) ;
314305 play_actions. positions . push ( appendee. position ) ;
315306 }
316307
317308 //Ignoring lower scored plays
318- ( Players :: PlayerX , Players :: Blank , Players :: PlayerO ) => { }
319- ( Players :: PlayerO , Players :: Blank , Players :: PlayerX ) => { }
309+ ( Players :: PlayerX , Players :: PlayerX , _)
310+ | ( Players :: PlayerO , Players :: PlayerO , _)
311+ | ( Players :: PlayerX , Players :: Blank , Players :: PlayerO )
312+ | ( Players :: PlayerO , Players :: Blank , Players :: PlayerX ) => { }
320313
321314 //No change hence append only
322315 ( _, _, _) => {
0 commit comments