Simplifying a 9 variable boolean expression

Viewed 3148

I am trying to create a tic-tac-toe program as a mental exercise and I have the board states stored as booleans like so:

http://i.imgur.com/xBiuoAO.png

I would like to simplify this boolean expression...

(a&b&c) | (d&e&f) | (g&h&i) | (a&d&g) | (b&e&h) | (c&f&i) | (a&e&i) | (g&e&c)

My first thoughts were to use a Karnaugh Map but there were no solvers online that supported 9 variables.

and heres the question:

First of all, how would I know if a boolean condition is already as simple as possible?

and second: What is the above boolean condition simplified?

4 Answers
Related