Skip to content

Hamed R.#5

Open
HamedRazizadeh-hub wants to merge 5 commits intoHackYourAssignment:mainfrom
HamedRazizadeh-hub:main
Open

Hamed R.#5
HamedRazizadeh-hub wants to merge 5 commits intoHackYourAssignment:mainfrom
HamedRazizadeh-hub:main

Conversation

@HamedRazizadeh-hub
Copy link
Copy Markdown

No description provided.

@remarcmij remarcmij self-assigned this Mar 25, 2026
Copy link
Copy Markdown

@remarcmij remarcmij left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @HamedRazizadeh-hub, task 1 is fine but task 2 only uses dummy data, not LLM responses. Let me know whether this is still coming soon, and I will continue the review.

#secondsFromMidnight;

constructor(hours, minutes, seconds) {
this.#secondsFromMidnight = hours * 3600 + minutes * 60 + seconds;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Although the numeric constants are not that difficult to reason about, it would be even clearer if you created a couple of constants for these "magic" numbers and then used them throughout your code. For instance:

const SEC_PER_MINUTE = 60;
const SEC_PER_HOUR = 60 * SEC_PER_MINUTE;
const SEC_PER_DAY = 24 * SEC_PER_HOUR;

task-2/index.js Outdated
}

// Generate quiz questions (fake data for testing)
// This can later be replaced with an AI API call
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you mean, later? Using the LLM is what this exercise is about. When I tried your app for programming topics I get this response.

jimcramer@Jims-Mac-mini task-2 % node index.js 
🎮 AI Quiz Game
Choose topic:
1. General Knowledge
2. Programming
3. Geography
Select topic (1-3 or q to quit): 2

Choose difficulty:
1. Easy
2. Medium
3. Hard
Select difficulty (1-3 or q to quit): 1

Starting quiz: Programming | Difficulty: easy

Question 1: (easy) What is the capital of Netherlands?
1. Rotterdam
2. Amsterdam
3. Utrecht
4. Eindhoven
Your answer (1-4, h for hint, q to quit): 

@HamedRazizadeh-hub
Copy link
Copy Markdown
Author

HamedRazizadeh-hub commented Mar 26, 2026 via email

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions
Copy link
Copy Markdown

📝 HackYourFuture auto grade

Assignment Score: 0 / 100 ✅

Status: ✅ Passed
Minimum score to pass: 0
🧪 The auto grade is experimental and still being improved

Test Details

Copy link
Copy Markdown

@remarcmij remarcmij left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @HamedRazizadeh-hub, task 2 is looking good! I do want to flag that some sections of the code have characteristics that are often associated with AI-generated output. Happy to chat about it if you'd like.

I'll approve this PR anyway.

const GITHUB_TOKEN = process.env.GITHUB_TOKEN;

if (!GITHUB_TOKEN) {
console.error("⚠️ Please set GITHUB_TOKEN in your .env file");
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Annoying, but AI tools often generate emojis like this in console.log statements.

@remarcmij remarcmij added the Reviewed This assignment has been reivewed by a mentor and a feedback has been provided label Mar 26, 2026
D) Option 4
Correct: B

Do NOT use JSON.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed this later. It is simpler if you ask the LLM to return (only) JSON. Then you do not have to parse the text response yourself, but instead can use JSON.parse().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Reviewed This assignment has been reivewed by a mentor and a feedback has been provided

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants