Suppose a game of 3-D tic tac toe is played on a 6 by 6 by 6 cube. How many winning lines are there through the cube?

The number of winning lines is 478.