How to add AI to any game... Episode 1: Setting everything up

Описание к видео How to add AI to any game... Episode 1: Setting everything up

In this video I will show you how to add AI to any game. This video is the first in a series of 5, and this one is just getting everything set up.

links:
python: https://www.python.org
VS code: https://code.visualstudio.com/download
Pymind: https://github.com/Dogz-R-Godz/Pymind

Cmd commands:
pip install numpy==1.23.5
pip install pygame

VS code extentions:
Pylance
Python

Code:
import pymind as pm
import numpy as np

inputs=2
outputs=1
middle=np.array([3,2])

network=pm.neural_network(inputs,middle,outputs)
network.randomise_network()

ai_inputs = np.array([1,0])
activation = "sig"

output=network.get_output(ai_inputs, activation)
print(output)
output=output[0]
print(output)

Комментарии

Информация по комментариям в разработке