Simplifying rock paper scissors equation?

Discussion in 'Homework Help' started by Brownwall, Mar 18, 2010.

  1. Brownwall

    Thread Starter New Member

    Mar 18, 2010
    I'm designing a rock paper scissors circuit and needed help simplifying the equations.

    Let 1R, 1P, and 1S be the options for the first player.
    Let 2R, 2P, and 2S be the options for the second player.
    Let 1W be win for first player, and 2W be win for second player.

    1W = 1R*(1P)*(1S)*(2R)*(2P)*2S + (1R)*1P*(1S)*2R*(2P)*(2S) + (1R)*(1P)*1S*(2R)*2P*(2S)

    2W = (1R)*(1P)*1S*2R*(2P)*(2S) + 1R*(1P)*(1S)*(2R)*2P*(2S) + (1R)*1P*(1S)*(2R)*(2P)*2S

    * is AND
    + is OR
    and () is inverter

    Would it be possible to further simplify these equations? Thanks in advance.
  2. Ghar

    Active Member

    Mar 8, 2010
    If you are properly setting the inputs, i.e. you can't have both 1R and 1P true at the same time, then you don't need to care about most of the values.

    So then you'd just get:

    1W = 1P*2R + 1S*2P + 1R*2S