pokemon style clone
- User
pokemon style clone
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
pokemon style clone
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Here's a Pokemon-style clone game! This is a fully functional turn-based RPG with creature collection, battles, evolution, and exploration. It's designed to be as comprehensive as possible while staying playable.
# PokeClone: A Pokemon-Style Adventure Game
# A complete creature collection RPG with battles, evolution, and exploration
# Features: Wild creature encounters, turn-based combat, leveling, evolution, items, gyms
import random
import time
import json
from typing import Dict, List, Optional
# Creature database with stats, types, and evolution chains
CREATURE_DATA = {
'Sparkle': {
'type': 'Electric', 'hp': 45, 'attack': 49, 'defense': 49, 'speed': 45,
'moves': ['Thunder Shock', 'Quick Attack'], 'evolves_to': 'Voltbeast', 'evolve_level': 16,
'description': 'A small electric rodent that stores electricity in its cheek pouches.'
},
'Voltbeast': {
'type': 'Electric', 'hp': 60, 'attack': 90, 'defense': 55, 'speed': 90,
'moves': ['Thunder Shock', 'Quick Attack', 'Thunder Bolt', 'Agility'], 'evolves_to': None, 'evolve_level': None,
'description': 'An evolved electric creature with powerful lightning attacks.'
},
'Flamepup': {
'type': 'Fire', 'hp': 39, 'attack': 52, 'defense': 43, 'speed': 65,
'moves': ['Ember', 'Scratch'], 'evolves_to': 'Blazehound', 'evolve_level': 16,
'description': 'A loyal fire puppy with a flame that never goes out on its tail.'
},
'Blazehound': {
'type': 'Fire', 'hp': 58, 'attack': 84, 'defense': 58, 'speed': 80,
'moves': ['Ember', 'Scratch', 'Flame Burst', 'Bite'], 'evolves_to': 'Infernodog', 'evolve_level': 36,
'description': 'A fierce fire hound that can melt steel with its breath.'
},
'Infernodog': {
'type': 'Fire', 'hp': 78, 'attack': 104, 'defense': 78, 'speed': 100,
'moves': ['Ember', 'Scratch', 'Flame Burst', 'Bite', 'Fire Blast', 'Roar'], 'evolves_to': None, 'evolve_level': None,
'description': 'The ultimate fire creature, capable of creating volcanic eruptions.'
},
'Aquafin': {
'type': 'Water', 'hp': 44, 'attack': 48, 'defense': 65, 'speed': 43,
'moves': ['Water Gun', 'Tackle'], 'evolves_to': 'Hydroshark', 'evolve_level': 16,
'description': 'A small turtle-like creature that can withdraw into its shell.'
},
'Hydroshark': {
'type': 'Water', 'hp': 59, 'attack': 63, 'defense': 80, 'speed': 58,
'moves': ['Water Gun', 'Tackle', 'Bubble Beam', 'Bite'], 'evolves_to': 'Tsunamiwing', 'evolve_level': 36,
'description': 'A powerful aquatic predator with razor-sharp fins.'
},
'Tsunamiwing': {
'type': 'Water', 'hp': 79, 'attack': 83, 'defense': 100, 'speed': 78,
'moves': ['Water Gun', 'Tackle', 'Bubble Beam', 'Bite', 'Hydro Pump', 'Surf'], 'evolves_to': None, 'evolve_level': None,
'description': 'A legendary water dragon that commands the oceans.'
},
'Leafling': {
'type': 'Grass', 'hp': 45, 'attack': 49, 'defense': 49, 'speed': 45,
'moves': ['Vine Whip', 'Tackle'], 'evolves_to': 'Forestguard', 'evolve_level': 16,
'description': 'A plant creature that photosynthesizes sunlight for energy.'
},
'Forestguard': {
'type': 'Grass', 'hp': 60, 'attack': 62, 'defense': 83, 'speed': 60,
'moves': ['Vine Whip', 'Tackle', 'Razor Leaf', 'Sleep Powder'], 'evolves_to': 'Treelord', 'evolve_level': 32,
'description': 'A guardian of the forest with powerful plant-based attacks.'
},
'Treelord': {
'type': 'Grass', 'hp': 80, 'attack': 82, 'defense': 103, 'speed': 80,
'moves': ['Vine Whip', 'Tackle', 'Razor Leaf', 'Sleep Powder', 'Solar Beam', 'Earthquake'], 'evolves_to': None, 'evolve_level': None,
'description': 'An ancient tree spirit with control over all plant life.'
},
'Rockpebble': {
'type': 'Rock', 'hp': 40, 'attack': 80, 'defense': 100, 'speed': 20,
'moves': ['Rock Throw', 'Tackle'], 'evolves_to': 'Boulderfist', 'evolve_level': 25,
'description': 'A living rock that grows stronger over time.'
},
'Boulderfist': {
'type': 'Rock', 'hp': 55, 'attack': 95, 'defense': 115, 'speed': 35,
'moves': ['Rock Throw', 'Tackle', 'Rock Slide', 'Harden'], 'evolves_to': 'Mountainking', 'evolve_level': 40,
'description': 'A massive rock creature with fists like boulders.'
},
'Mountainking': {
'type': 'Rock', 'hp': 80, 'attack': 120, 'defense': 130, 'speed': 45,
'moves': ['Rock Throw', 'Tackle', 'Rock Slide', 'Harden', 'Earthquake', 'Stone Edge'], 'evolves_to': None, 'evolve_level': None,
'description': 'The king of all rock creatures, as immovable as a mountain.'
},
'Windwisp': {
'type': 'Flying', 'hp': 40, 'attack': 45, 'defense': 40, 'speed': 70,
'moves': ['Gust', 'Quick Attack'], 'evolves_to': 'Stormwing', 'evolve_level': 20,
'description': 'A creature made of pure wind that can fly at incredible speeds.'
},
'Stormwing': {
'type': 'Flying', 'hp': 60, 'attack': 70, 'defense': 60, 'speed': 95,
'moves': ['Gust', 'Quick Attack', 'Wing Attack', 'Agility'], 'evolves_to': 'Hurricanelord', 'evolve_level': 35,
'description': 'A majestic bird that can summon powerful windstorms.'
},
'Hurricanelord': {
'type': 'Flying', 'hp': 85, 'attack': 90, 'defense': 80, 'speed': 120,
'moves': ['Gust', 'Quick Attack', 'Wing Attack', 'Agility', 'Hurricane', 'Sky Attack'], 'evolves_to': None, 'evolve_level': None,
'description': 'The master of all winds, capable of creating devastating hurricanes.'
}
}
# Move database with power, accuracy, and effects
MOVE_DATA = {
'Thunder Shock': {'power': 40, 'accuracy': 100, 'type': 'Electric', 'effect': 'paralysis'},
'Thunder Bolt': {'power': 90, 'accuracy': 100, 'type': 'Electric', 'effect': 'paralysis'},
'Quick Attack': {'power': 40, 'accuracy': 100, 'type': 'Normal', 'effect': 'priority'},
'Ember': {'power': 40, 'accuracy': 100, 'type': 'Fire', 'effect': 'burn'},
'Flame Burst': {'power': 70, 'accuracy': 100, 'type': 'Fire', 'effect': 'burn'},
'Fire Blast': {'power': 110, 'accuracy': 85, 'type': 'Fire', 'effect': 'burn'},
'Scratch': {'power': 40, 'accuracy': 100, 'type': 'Normal', 'effect': None},
'Bite': {'power': 60, 'accuracy': 100, 'type': 'Dark', 'effect': 'flinch'},
'Roar': {'power': 0, 'accuracy': 100, 'type': 'Normal', 'effect': 'force_switch'},
'Water Gun': {'power': 40, 'accuracy': 100, 'type': 'Water', 'effect': None},
'Bubble Beam': {'power': 65, 'accuracy': 100, 'type': 'Water', 'effect': 'speed_down'},
'Hydro Pump': {'power': 110, 'accuracy': 80, 'type': 'Water', 'effect': None},
'Tackle': {'power': 40, 'accuracy': 100, 'type': 'Normal', 'effect': None},
'Surf': {'power': 90, 'accuracy': 100, 'type': 'Water', 'effect': None},
'Vine Whip': {'power': 45, 'accuracy': 100, 'type': 'Grass', 'effect': None},
'Razor Leaf': {'power': 55, 'accuracy': 95, 'type': 'Grass', 'effect': 'high_crit'},
'Sleep Powder': {'power': 0, 'accuracy': 75, 'type': 'Grass', 'effect': 'sleep'},
'Solar Beam': {'power': 120, 'accuracy': 100, 'type': 'Grass', 'effect': 'charge'},
'Rock Throw': {'power': 50, 'accuracy': 90, 'type': 'Rock', 'effect': None},
'Rock Slide': {'power': 75, 'accuracy': 90, 'type': 'Rock', 'effect': 'flinch'},
'Stone Edge': {'power': 100, 'accuracy': 80, 'type': 'Rock', 'effect': 'high_crit'},
'Harden': {'power': 0, 'accuracy': 100, 'type': 'Normal', 'effect': 'defense_up'},
'Earthquake': {'power': 100, 'accuracy': 100, 'type': 'Ground', 'effect': None},
'Gust': {'power': 40, 'accuracy': 100, 'type': 'Flying', 'effect': None},
'Wing Attack': {'power': 60, 'accuracy': 100, 'type': 'Flying', 'effect': None},
'Hurricane': {'power': 110, 'accuracy': 70, 'type': 'Flying', 'effect': 'confusion'},
'Sky Attack': {'power': 140, 'accuracy': 90, 'type': 'Flying', 'effect': 'charge'},
'Agility': {'power': 0, 'accuracy': 100, 'type': 'Psychic', 'effect': 'speed_up'}
}
# Type effectiveness chart
TYPE_CHART = {
'Fire': {'Grass': 2.0, 'Water': 0.5, 'Fire': 0.5, 'Rock': 2.0},
'Water': {'Fire': 2.0, 'Grass': 0.5, 'Water': 0.5, 'Rock': 2.0},
'Grass': {'Water': 2.0, 'Fire': 0.5, 'Grass': 0.5, 'Rock': 2.0},
'Electric': {'Water': 2.0, 'Flying': 2.0, 'Electric': 0.5, 'Grass': 0.5},
'Rock': {'Fire': 2.0, 'Flying': 2.0, 'Rock': 0.5},
'Flying': {'Grass': 2.0, 'Electric': 0.5, 'Rock': 0.5},
'Normal': {},
'Dark': {},
'Ground': {'Electric': 2.0, 'Fire': 2.0, 'Rock': 2.0, 'Flying': 0.0},
'Psychic': {}
}
class Creature:
def __init__(self, species: str, level: int = 5):
self.species = species
self.level = level
self.exp = 0
self.exp_to_next = self.calculate_exp_needed()
# Base stats from species data
base_stats = CREATURE_DATA[species]
self.type = base_stats['type']
self.max_hp = self.calculate_stat(base_stats['hp'])
self.attack = self.calculate_stat(base_stats['attack'])
self.defense = self.calculate_stat(base_stats['defense'])
self.speed = self.calculate_stat(base_stats['speed'])
self.current_hp = self.max_hp
self.moves = base_stats['moves'].copy()
self.status = None # paralysis, burn, sleep, etc.
self.stat_modifiers = {'attack': 0, 'defense': 0, 'speed': 0}
def calculate_stat(self, base_stat: int) -> int:
# Pokemon-style stat calculation
return int(((2 * base_stat * self.level) / 100) + self.level + 10)
def calculate_exp_needed(self) -> int:
return int(4 * (self.level ** 3) / 5)
def gain_exp(self, amount: int):
self.exp += amount
while self.exp >= self.exp_to_next:
self.level_up()
def level_up(self):
old_level = self.level
self.level += 1
self.exp_to_next = self.calculate_exp_needed()
# Recalculate stats
old_max_hp = self.max_hp
base_stats = CREATURE_DATA[self.species]
self.max_hp = self.calculate_stat(base_stats['hp'])
self.attack = self.calculate_stat(base_stats['attack'])
self.defense = self.calculate_stat(base_stats['defense'])
self.speed = self.calculate_stat(base_stats['speed'])
# Heal HP gained from leveling
hp_gained = self.max_hp - old_max_hp
self.current_hp += hp_gained
print(f"\n🎉 {self.species} leveled up to {self.level}!")
print(f"HP: {old_max_hp} → {self.max_hp}")