In RL, if I assign the rewards for better positional play, the algorithm is learning nothing?

I'm creating an RL application for the game Connect Four.

If I tell the algorithm which moves/token positions will receive greater rewards, surely it's not actually learning anything; it's just a basic lookup for the algorithm? "Shall I place the token here, or here? Well, this one receives a greater reward, so I choose this one."

For example, some pseudocode:

function get_reward()
if 2 in a line
return 1
if 3 in a line
return 2
if 4 in a line
return 10
else
return -1

foreach columns
column_reward_i = get_reward(column_i)
if column_reward_i >= column_rewards
place_token(column_i)

• Maybe you could show a plot of the performance of your algorithm through time. – nbro Apr 4 at 14:01
• There is no code at the moment, I'm just trying to work out how, if I'm assigning values for different positions, the algorithm is actually learning anything? – mason7663 Apr 4 at 14:21