This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from selenium import webdriver | |
from selenium.webdriver.common.keys import Keys | |
from selenium.webdriver.common.by import By | |
import time | |
PROMISED_DOWN = # Promised Download Speed | |
PROMISED_UP = # Promised Upload Speed | |
CHROME_DRIVER_PATH = # Path of the Chrome Driver | |
TWITTER_EMAIL = # Bot Email | |
TWITTER_USER = # Bot Username, Used cause multiple logins |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Note : The code is of standalone Flappy bird, and as of this writing there is no human controllable agents in this game, | |
# cause we want the AI to learn to play the game, and this is an unfinished code. | |
# The AI Implemenetation walkthrough is after this. | |
import pygame | |
import neat | |
import time | |
import os | |
import random | |
pygame.font.init() # Initialize pygame font |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[NEAT] # -> The Configuration File with all variables and parameters are defined | |
fitness_criterion = max #-> This is to determine the best birds to select [ Select the birds with highest fitness] | |
fitness_threshold = 100 #-> Number we need to reach before we terminate the program | |
pop_size = 20 #-> The number of birds we want in the experiment | |
reset_on_extinction = False #-> Separates the kind of population into species, and creates random species if they get extinct | |
[DefaultGenome] #-> All of population members (birds) genome, nodes= neurons and genes = connections, | |
# node activation options | |
activation_default = tanh #-> Activation function | |
activation_mutate_rate = 0.0 #-> to change it randomly |