hey i have a problem doing "auto play timberman"

hello I'm trying to create a system that automatically plays Timberman on PC with 2 x photoresistor and 2 x servo, but I can't write the code. Can anyone help me and upload the code and connection for this project?

How do you envisage the Arduino playing Timberman (I assume that it is a game) on the PC using 2 photoresistors and 2 servos ?

click left or right arrow to hit the tree from the left or right side, don't be crushed under a branch (swap side)

an arduino emulating a keyboard would probably be best

if the photoresistor detects an obstacle (branch), the servo will press the keyboard and the lumberjack will go to the other side

So what can you write ?

For instance, do you know how to read the output of the photoresistor and print the value on the Serial monitor ?