From a496833c17a639aa52247e1437147f92d7519262 Mon Sep 17 00:00:00 2001 From: Julio Biason Date: Mon, 4 Oct 2021 12:27:57 -0300 Subject: [PATCH] Followed the bot suggestion --- elixir/pacman-rules/lib/rules.ex | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/elixir/pacman-rules/lib/rules.ex b/elixir/pacman-rules/lib/rules.ex index abc7171..d020f78 100644 --- a/elixir/pacman-rules/lib/rules.ex +++ b/elixir/pacman-rules/lib/rules.ex @@ -1,17 +1,17 @@ defmodule Rules do def eat_ghost?(power_pellet_active, touching_ghost) do - power_pellet_active && touching_ghost + power_pellet_active and touching_ghost end def score?(touching_power_pellet, touching_dot) do - touching_power_pellet || touching_dot + touching_power_pellet or touching_dot end def lose?(power_pellet_active, touching_ghost) do - ! power_pellet_active && touching_ghost + not power_pellet_active and touching_ghost end def win?(has_eaten_all_dots, power_pellet_active, touching_ghost) do - has_eaten_all_dots && ! lose?(power_pellet_active, touching_ghost) + has_eaten_all_dots and not lose?(power_pellet_active, touching_ghost) end end