Well... the 7700HQ is a laptop CPU... comparable in performance to a desktop i5 7400. Where as the 8700K is a desktop CPU.
Most certainly the 7700K with the 1070 would be the better gaming system. The CPUs in question are all capable of allowing upwards of a 1080 to hit its max potential, so it all comes down to the video cards.