It's best you:
1) give your total BUDGET (before tax/ship)
2) state what that includes (Monitor + PC + keyboard/mouse + Windows 10?)
3) state country
4) tell us specifics about usage (i.e. 1080p high FPS gaming?, or 2560x1440+ lower FPS?)
The i7-8700K is the best gaming CPU however it's also $420USD and requires a very good cooler (i.e. 240mm liquid cooler) if you want to get close to 5GHz but still a top-end air cooler for closer to 4.6GHz or so.
In general, you should stick with 2x8GB 3000 or 3200MHz DDR4 for any modern, top-end build whether Ryzen or Intel. Possibly G.Skill or Corsair.
The MONITOR also matters a lot too. I'd rather spend a little less on the core system if that meant putting money towards a GSYNC monitor. For example:
27"
2560x1440
IPS
144Hz+
GSYNC
(or 100Hz 3440x1440 ultrawide but be sure as ultrawides are more hassle to get working in games)
The graphics card is arguably the most important component for gaming (assuming the CPU is fairly good), with the GTX1080Ti being the best card for gaming, but a GTX1060 6GB still gives you most of the visual fidelity in modern gaming.
I'd rather get the i5-8600K (six core no hyperthreading) if that meant putting more money towards a better graphics card. I believe that saves $140 (it's $280USD) vs the i7-8700K which just adds hyperthreading which may or may not benefit you.
Hyperthreading is like adding a 2nd core for each physical core that is about 30% as powerful. It's physically the same CPU core but it can run another thread of CODE during the time that core is waiting for new code from system memory (i.e. DDR4). However, if you aren't using a program, or programs that need all those threads then the added hyperthreading is pointless.