mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 16:54:59 +00:00
copy
This commit is contained in:
parent
705f6a1324
commit
41a5f09cb9
5 changed files with 11 additions and 10 deletions
|
@ -1,6 +1,7 @@
|
||||||
|
|
||||||
# Aider modifying the 2048 game
|
# Modify an open source 2048 game with aider and gpt-4
|
||||||
> Here, we explore and modify the open source 2048 game codebase from https://github.com/gabrielecirulli/2048
|
|
||||||
|
> The user explores and modifies the open source 2048 game codebase from https://github.com/gabrielecirulli/2048
|
||||||
|
|
||||||
---
|
---
|
||||||
#### > what is this repo?
|
#### > what is this repo?
|
||||||
|
|
|
@ -4,8 +4,8 @@ Here are some example transcripts that show how you can chat with Aider to gener
|
||||||
|
|
||||||
1. [**Hello World Flask App**](hello-world-flask.md): This example demonstrates how to create a simple Flask app with various endpoints, such as adding two numbers and calculating the Fibonacci sequence.
|
1. [**Hello World Flask App**](hello-world-flask.md): This example demonstrates how to create a simple Flask app with various endpoints, such as adding two numbers and calculating the Fibonacci sequence.
|
||||||
|
|
||||||
2. [**Semantic Search & Replace**](semantic-search-replace.md): This example showcases Aider's ability to perform semantic search and replace operations in code, dealing with various formatting and semantic differences in the function calls that it updates.
|
2. [**2048 Game Modification**](2048-game.md): This example demonstrates how to explore and modify an open-source 2048 game codebase, including adding randomness to the scoring system.
|
||||||
|
|
||||||
3. [**2048 Game Modification**](2048-game.md): This example demonstrates how to explore and modify an open-source 2048 game codebase, including adding randomness to the scoring system.
|
3. [**Semantic Search & Replace**](semantic-search-replace.md): This example showcases Aider's ability to perform semantic search and replace operations in code, dealing with various formatting and semantic differences in the function calls that it updates.
|
||||||
|
|
||||||
4. [**Pong Game with Pygame**](pong.md): This example demonstrates how to create a simple Pong game using the Pygame library, with customizations for paddle size and color, and ball speed adjustments.
|
4. [**Pong Game with Pygame**](pong.md): This example demonstrates how to create a simple Pong game using the Pygame library, with customizations for paddle size and color, and ball speed adjustments.
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
|
|
||||||
# Aider creating a simple flask app
|
# Create a simple flask app with aider and gpt-4
|
||||||
|
|
||||||
|
> The user asks aider to make a simple flask app with various endpoints.
|
||||||
|
|
||||||
#### > make a flask app with a /hello endpoint that returns hello world
|
#### > make a flask app with a /hello endpoint that returns hello world
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
|
|
||||||
# Aider building pong with pygame
|
# Build pong with aider, gpt-4 and pygame.
|
||||||
|
|
||||||
> After setting up a basic pong game, the user asks for some customization of the
|
> After setting up a basic pong game, the user asks for some customization of the
|
||||||
> colors and game mechanics.
|
> colors and game mechanics.
|
||||||
|
|
|
@ -1,11 +1,9 @@
|
||||||
# Aider performing semantic search & replace
|
# Semantic search & replace on code with aider and gpt-4
|
||||||
|
|
||||||
> Aider did a nice job of "semantic search and replace" here.
|
> The user asks aider to do "semantic search and replace" to modify a series of function cals.
|
||||||
> Notice that it isn't replacing exact strings.
|
> Notice that it isn't replacing exact strings.
|
||||||
> It's dealing with various formatting and semantic differences in the calls that it is updating.
|
> It's dealing with various formatting and semantic differences in the calls that it is updating.
|
||||||
|
|
||||||
*Loading aider/coder.py*
|
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
#### coder.py> replace all the self.console.print() calls that contain [red] with calls to self.io.tool_error() with [red] removed from the string
|
#### coder.py> replace all the self.console.print() calls that contain [red] with calls to self.io.tool_error() with [red] removed from the string
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue