Closed KevinMB0220 closed 15 hours 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.
Can I be assigned to this ?
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?
I would like to work on this issue
I'd like to handle this task.
@ShantelPeters Could you give me a description of how you would solve it?
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
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
@KevinMB0220 thanks for the opportunity I'll get on it
@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.
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
@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 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 🫡
Inventory Capacity System with Maximum Object Limit
felt
(or a simple data type) representing the objects.add_to_inventory
that checks for available space before adding a new object. Provide functions to display inventory contents and remove objects as needed.