因為最近 ChatGPT 蠻多人討論的並且我也開始看到一些人在像是 Lemmasoft Forum 或是在 Reddit 上詢問關於這件事
所以今天我就親自去測試到底現在能不能使用 AI 軟件來打代碼拉~

測試使用的網站: ChatGPT

我就問幾個簡單的問題看它能不能給出正確的代碼:

Q1: How to define a character in renpy?

  • 如何在 Renpy 中定義角色

以下是AI的回答:

  • 恩, 目前我們還不能使用 OpenChat.AI 來建立角色

Q2: How to add dialogue in Renpy?

  • 如何在 Renpy 中加入對話

  • 看來對話也是還無法使用AI建立

Q3: What is the newest version of renpy?

  • 最新版本的 Renpy 是什麼?
    加入這題是想看如果不是代碼只是普通很好查到的資料的話 AI 能不能給出正確的答案

以下是他的回覆:

As of September 2021, the latest stable version of Ren’Py is 7.4.2. This version was released on September 8, 2021 and includes various bug fixes and improvements.

You can download the latest version of Ren’Py from the official website at https://www.renpy.org/. The website also provides documentation and resources for developers, as well as a community forum where you can ask questions and get support.

I hope this helps! Let me know if you have any questions or need further assistance.

  • 很可惜的是就連這樣的問題也無法給出正確的答案呢

正確的答案:

額且在換了一個問法後: What is the latest version of Ren’py?
它也給出了錯誤的答案並創造根本沒有發生的事 (更新)

  • 所以除了不能拿來寫代碼外要使用它寫文章或是參考它來幫助你寫文章也是還不能做到的

其實在測試之前我大概就有預感是無法使用了而且 ChatGPT 在 Stackoverflow 上也是被禁止使用的
理由其實很簡單: 就是他會給出”看起來”很正確的代碼但卻無法正常使用
就像上面的 2 個範例
如果你是以前沒有接觸過 Renpy 代碼的人很可能就看不出這是錯誤的因為 ChatGPT 不只會給你代碼還會詳細的跟你解釋如何使用它生產出的代碼

或許未來我們真的可以使用 AI 工具來幫助我們完成代碼的工作但目前的話,因為錯誤率還是很高所以不建議使用