• Что бы вступить в ряды "Принятый кодер" Вам нужно:
    Написать 10 полезных сообщений или тем и Получить 10 симпатий.
    Для того кто не хочет терять время,может пожертвовать средства для поддержки сервеса, и вступить в ряды VIP на месяц, дополнительная информация в лс.

  • Пользаватели которые будут спамить, уходят в бан без предупреждения. Спам сообщения определяется администрацией и модератором.

  • Гость, Что бы Вы хотели увидеть на нашем Форуме? Изложить свои идеи и пожелания по улучшению форума Вы можете поделиться с нами здесь. ----> Перейдите сюда
  • Все пользователи не прошедшие проверку электронной почты будут заблокированы. Все вопросы с разблокировкой обращайтесь по адресу электронной почте : info@guardianelinks.com . Не пришло сообщение о проверке или о сбросе также сообщите нам.

Conquer the Realm of Coding in the Code Quest Adventure Game

Lomanu4 Оффлайн

Lomanu4

Команда форума
Администратор
Регистрация
1 Мар 2015
Сообщения
1,481
Баллы
155
This is a submission for the

Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.

: That's Entertainment!


What I Built


Learning to code can sometimes exhaust us. We all do need a entertainment break from the chaos of endless debugging. But, what if that break could still sharpen your coding skill? Why don't we just combine learning and entertainment in a fully gamified coding adventure?

I created a web-based game application that can keep you entertained while helping you improve your skill of debugging code in your head. You have to be able to figure out what should be the output of the code in a multiple-choice challenge. You must also find out what is missing from the code in the fill-in-the-blank challenge. Prove your skill to defeat the final boss and claim your title as the master developer!

The story, the objective, the question, and the answer in this game are generated in real time by Amazon Q Developer CLI. That's why you will always play different stories and different questions each time you play it. There are endless possibilities generated by Amazon Q Developer CLI that make the game contents always unique.

Demo


You can start playing Code Quest Adventure on this link:

Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.



The game rules are very simple. There are three levels in this game. You have to defeat the final boss at level three. Just be careful, the enemies will deal more damage as you progress each level.

If you answer the question correctly, you will be rewarded point and the enemy will be damaged.


Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.



Otherwise, if you fail the question, you will be punished by the enemy.


Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.



Code Repository


Code Quest Adventure's source code can be found in

Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.

The source code includes three README files providing frontend and backend code documentation for local testing and reviewing purposes.

How I Used Amazon Q Developer


How does the game work? How does it provide AI-generated content? Well, the project consists of two parts, frontend and backend. The frontend application will ask the backend via API to run "q chat --no-interactive" command in CLI. Amazon Q Developer CLI will then give some answers that will be parsed as JSON by the backend application. Frontend receives that JSON-formatted data as a response and serves it to the users.

I'm still a long, long way from being a master developer. Nor am I anywhere near being an AI prompt engineer. But, with the help of Amazon Q Developer, I can make this game possible to craft. This is my initial prompt for Amazon Q Developer:


Help me prepare an environment to build a simple web-based game.
The game should be named with an interesting name that represents an adventure story game, learning coding, and Amazon Q.
The programming language for the frontend should be JS.
The backend will be using python.
It is an interactive online code learning platform for beginners.
It has to be 100% gamified.
It is an adventure story based game.
The question given to the user is not just multiple choice,
but also fill in the blank.

The application consists of frontend and backend parts with no login and register feature.
The folder name should be lowercase with "-" as a delimiter.
Initialize the project file using framework generator.
Add some graphics mechanism, like the user will beat the enemy and go to the next level if the answer is correct.
Otherwise, player's hp will decrease to death.
Frontend will ask backend to get the story, game content, and question, which is not stored in the database, but the code will ask Amazon Q in CLI to generate using command "q chat --no-interactive".
There must be no default or predefined response.
If Amazon Q fails, just give an error message that will be displayed.

While backend is generating a response, add a creative loading screen so user doesn't get bored, like quotes or progress bar.
Before building the frontend, verify all backend endpoints giving the correct response.
Then, verify the frontend is also deployed without any errors and production ready.
Don't forget to add readme file.

That's it! I got the entire structure of the project. Because I used Amazon Q Developer CLI, it could even help me to prepare the development environment. It automates the installation of nodejs and project framework using npm and pip. I also found that Amazon Q Developer has made initial code for base logic and even some real graphics. Fun fact: this is how the project looks like at the first prompt.


Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.



Of course, it needed some polish to be more entertaining. With a lot of help from Amazon Q Developer, I could finish the game project so easily. Inserting graphics, adding sound effects, debugging, and improving game logic, all could be done in just 2 days!

This is my first time using Amazon Q Developer, and I can say it is the most sophisticated AI developer tool I've ever worked with. It handled almost everything. Setting up the development environment, structuring the application, improving code logic, and deploying the application to EC2 server, are all done by Amazon Q Developer. Behind the scenes, it even challenge players to code by generating tricky coding question on this game. At the and of the day, it really taught me how to build better and faster.


Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.

 
Вверх Снизу