This file contains hidden or 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
public class AdvancedAstrology { | |
public static void printStars(int number) { | |
// part 1 of the exercise | |
for (int i = 0; i < number; i++) { | |
System.out.print("*"); | |
} | |
System.out.println(); |
This file contains hidden or 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
# By Sudeep kuchara | |
# Special thanks to the lucas thompson's YT channel, he helped me throughout this project | |
# Application of the NEAT algorithm using neat-python to play the retro contra(NES) | |
# OpenAI environment | |
# bugfixes are coming sooner than later | |
# Retro-gym yadayadayada | |
import retro | |
import numpy as np | |
import cv2 |
This file contains hidden or 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
#used in the implementation of xor function in neat-python | |
#Configuration for the Neat Neural network | |
#outputs has been increased to 10 (see the output layer) | |
[NEAT] | |
fitness_criterion = max | |
fitness_threshold = 10000 | |
pop_size = 20 | |
reset_on_extinction = true | |
[DefaultGenome] |
This file contains hidden or 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
# spoj coding problem | |
# exceeds the time limit | |
# primenumbergenerator | |
x = int(input()) | |
quck=x | |
z=[] | |
p=[] | |
while x != 0: |
NewerOlder