TAAFT
Free mode
100% free
Freemium
Free Trial
Create tool

ahmed Gohary

@ahmedfarouk-5 Tasks: 29
🛠️ 6 tools 🙏 394 karma
Strategist
Joined: December 2024

ahmed Gohary's tools

  • PhotoGram
    Create ultra-realistic images that blur digital and reality.
    Open
    6
    2
    1
    Released 5mo ago
    100% Free
    PhotoGram website
  • advanced python coder
    AI-powered Python expert for professional, efficient scripts.
    Open
    29
    10
    7
    Released 8mo ago
    100% Free
    advanced python coder website
  • PythLove
    Transform ideas into Python code effortlessly.
    Open
    435
    149
    4.2
    172
    Released 8mo ago
    100% Free
    ```python import pygame import sys import time import random # Direction Constants UP = 1 RIGHT = 2 DOWN = 3 LEFT = 4 class SnakeGame: def __init__(self, width=800, height=600): self.width = width self.height = height self.snake = [(200, 200), (220, 200), (240, 200)] self.direction = RIGHT self.apple = self.set_new_apple() pygame.init() self.display = pygame.display.set_mode((width, height)) pygame.display.set_caption('Snake Game') self.font = pygame.font.Font(None, 36) def set_new_apple(self): while True: x = random.randint(0, self.width - 20) // 20 * 20 y = random.randint(0, self.height - 20) // 20 * 20 apple = (x, y) if apple not in self.snake: return apple def draw_snake(self): for pos in self.snake: pygame.draw.rect(self.display, (0, 255, 0), (pos[0], pos[1], 20, 20)) def draw_apple(self): pygame.draw.rect(self.display, (255, 0, 0), (self.apple[0], self.apple[1], 20, 20)) def draw_score(self): score = len(self.snake) - 3 text = self.font.render(f'Score: {score}', True, (255, 255, 255)) self.display.blit(text, (10, 10)) def update(self): for event in pygame.event.get(): if event.type == pygame.QUIT: pygame.quit() sys.exit() elif event.type == pygame.KEYDOWN: if event.key == pygame.K_UP and self.direction != DOWN: self.direction = UP elif event.key == pygame.K_DOWN and self.direction != UP: self.direction = DOWN elif event.key == pygame.K_LEFT and self.direction != RIGHT: self.direction = LEFT elif event.key == pygame.K_RIGHT and self.direction != LEFT: self.direction = RIGHT head = self.snake[-1] if self.direction == UP: new_head = (head[0], head[1] - 20) elif self.direction == DOWN: new_head = (head[0], head[1] + 20) elif self.direction == LEFT: new_head = (head[0] - 20, head[1]) elif self.direction == RIGHT: new_head = (head[0] + 20, head[1]) self.snake.append(new_head) if self.snake[-1] == self.apple: self.apple = self.set_new_apple() else: self.snake.pop(0) if (self.snake[-1][0] < 0 or self.snake[-1][0] >= self.width or self.snake[-1][1] < 0 or self.snake[-1][1] >= self.height or self.snake[-1] in self.snake[:-1]): print("Game Over") pygame.quit() sys.exit() def draw(self): self.display.fill((0, 0, 0)) self.draw_snake() self.draw_apple() self.draw_score() pygame.display.update() def run(self): clock = pygame.time.Clock() while True: self.update() self.draw() clock.tick(10) if __name__ == "__main__": game = SnakeGame() game.run() ```
  • RomaGPT
    Your versatile AI assistant for all tasks
    Open
    58
    9
    7
    Released 8mo ago
    100% Free
    Dr. Elara Voss adjusted the dials on her Temporal Displacement Device, her fingers trembling with anticipation. The lab around her hummed with energy, the air thick with the scent of ozone. She had spent years perfecting this moment, and now, as the machine whirred to life, she felt a surge of exhilaration. The device was designed to send her exactly 1,000 years into the future, a leap into the unknown. With a deep breath, she activated the machine. The world around her blurred, colors and shapes melting into a kaleidoscope of light. For a moment, she felt weightless, as though she were floating in a void. Then, with a sudden jolt, she landed. The first thing she noticed was the silence. No hum of machinery, no distant chatter of people—just an eerie stillness. She opened her eyes to find herself in a dense forest, the trees towering above her like ancient sentinels. The air was crisp, filled with the scent of moss and damp earth. But something was off. The trees were unlike any she had ever seen, their bark shimmering with a faint, iridescent glow. As she ventured deeper into the forest, she noticed strange markings on the trees—symbols that seemed to pulse with a soft, golden light. They were unlike any language she had encountered, yet they felt familiar, as though they were calling to her. She followed the trail of symbols, her curiosity growing with each step. After what felt like hours, she emerged into a clearing. Before her stood a massive stone archway, its surface covered in the same glowing symbols. Beyond the archway, she could see a city—but it was unlike any city she had ever imagined. The buildings were made of a translucent material that seemed to shift and change color as she watched. The streets were lined with plants that glowed softly, their leaves shimmering in hues of blue and green. As she stepped through the archway, she felt a sudden warmth, as though the city itself was welcoming her. She was soon approached by a group of beings—humanoid in shape, but with skin that shimmered like the trees and eyes that glowed with an inner light. They spoke in a melodic language, their voices harmonizing in a way that sent shivers down her spine. One of them stepped forward, extending a hand. "Welcome, Dr. Voss," they said, their voice echoing in her mind. "We have been waiting for you." Elara's heart raced. "Waiting for me? How do you know who I am?" The being smiled, their expression serene. "Time is not linear for us. We have seen your journey, your struggles, your triumphs. You are the key to bridging our worlds." Elara's mind reeled. She had come seeking knowledge, but she had found something far greater—a civilization that had mastered the flow of time itself. As she was led deeper into the city, she realized that her journey was only just beginning. The secrets of this hidden civilization would change everything she thought she knew about the universe—and her place within it. And so, Dr. Elara Voss, the time-traveling scientist, became the bridge between two worlds, her discoveries paving the way for a new era of understanding and unity.
  • Sketch gram
    Transform text into captivating sketches.
    Open
    506
    202
    3.5
    155
    Released 8mo ago
    100% Free
  • Realistic Image Generation
    Transform words into captivating book covers.
    Open
    270
    41
    3.5
    51
    Released 8mo ago
    100% Free

ahmed Gohary's lists

0 AIs selected
Clear selection
#
Name
Task