SunsetLabs-Game / Citizen-of-Arcanis-BackEnd

MIT License
0 stars 9 forks source link

Feat: Inventory Capacity System with Maximum Object Limit #6

Closed KevinMB0220 closed 15 hours ago

KevinMB0220 commented 6 days ago
Inventory Capacity System with Maximum Object Limit
GideonBature commented 5 days ago

Greetings can you please assign this issue to me?

I am a software engineer and have participated and contributed to previous ODHacks. I would love to contribute once again by solving this issue. I have experience working with Cairo. For this project, I will send my first PR within 48 hrs.

Thank you.

mimisavage commented 4 days ago

Can I be assigned to this ?

enyinnaya1234 commented 4 days ago

I am a fullstack developer with over 3 years experience providing solutions. i believe ican provide solution to this issue. can i take it on?

BrunoAmbricca commented 4 days ago

I would like to work on this issue

ShantelPeters commented 4 days ago

I'd like to handle this task.

KevinMB0220 commented 4 days ago

@ShantelPeters Could you give me a description of how you would solve it?

DanielEmmanuel1 commented 4 days ago

Can I take this from here? I'm a new contributor to this repo and would love to opportunity to contribute

How I plan to tackle the issue

KevinMB0220 commented 4 days ago

Can I take this from here? I'm a new contributor to this repo and would love to opportunity to contribute

How I plan to tackle the issue

  • I will create a list, of the appropriate data type,(with a set max size) to house the current inventory elements.
  • Then I'll create a function to add objects to the inventory when the list is not full.

Yeah sure

DanielEmmanuel1 commented 4 days ago

@KevinMB0220 thanks for the opportunity I'll get on it

KevinMB0220 commented 3 days ago

@KevinMB0220 thanks for the opportunity I'll get on it

You're welcome, I'll be on the lookout for any problems you may have. You can write to me on Telegram so I can keep up to date with the progress.

coxmars commented 2 days ago

Hi @KevinMB0220, I'm a software developer with 2+ years of experience and I have worked with backend technologies such as Cairo, Java, C# and frontend with React, NextJS, JS/TS. Also, I'm a member of the Dojo Coding community here in CR and I have made contributions in Cairo VM Go, Cairo VM TS, Cairo Lints etc. Likewise, I’m a Cairo developer working in ByteBuildersLabs creating on-chain games using the Dojo framework.

This is my approach:

ET: 5 hrs

KevinMB0220 commented 2 days ago

@coxmars yes sure

Hi @KevinMB0220, I'm a software developer with 2+ years of experience and I have worked with backend technologies such as Cairo, Java, C# and frontend with React, NextJS, JS/TS. Also, I'm a member of the Dojo Coding community here in CR and I have made contributions in Cairo VM Go, Cairo VM TS, Cairo Lints etc. Likewise, I’m a Cairo developer working in ByteBuildersLabs creating on-chain games using the Dojo framework.

This is my approach:

  • Create the inventory model using a Cairo array with a maximum capacity of 10.
  • Implement core functions: add_to_inventory, remove_from_inventory, get_inventory, and is_full.
  • Define constants for capacity and utility functions for item management.
  • Write unit tests to validate core functionality and handle edge cases like full or empty inventories.
  • Also if you need, I could create an item model with its fields to have a better track, logic and robust development, instead just felt data for arrays as names.

ET: 5 hrs

yes sure

coxmars commented 2 days ago

@coxmars yes sure

Hi @KevinMB0220, I'm a software developer with 2+ years of experience and I have worked with backend technologies such as Cairo, Java, C# and frontend with React, NextJS, JS/TS. Also, I'm a member of the Dojo Coding community here in CR and I have made contributions in Cairo VM Go, Cairo VM TS, Cairo Lints etc. Likewise, I’m a Cairo developer working in ByteBuildersLabs creating on-chain games using the Dojo framework. This is my approach:

  • Create the inventory model using a Cairo array with a maximum capacity of 10.
  • Implement core functions: add_to_inventory, remove_from_inventory, get_inventory, and is_full.
  • Define constants for capacity and utility functions for item management.
  • Write unit tests to validate core functionality and handle edge cases like full or empty inventories.
  • Also if you need, I could create an item model with its fields to have a better track, logic and robust development, instead just felt data for arrays as names.

ET: 5 hrs

yes sure

Thanks, I will send a PR in a couple of hours 🫡