
Closed
Posted
لعبة النرد لشخصين (Two Player Dice Game / Pig Game) نبذة عن المشروع مشروع واجهة أمامية (Front-end) للعبة نرد كلاسيكية تُعرف بـ"Pig Game"، مصممة للعب بين شخصين على نفس الجهاز. التصميم (HTML + CSS) جاهز بالكامل تقريبًا، والمطلوب هو كتابة منطق اللعبة بالجافاسكريبت (JavaScript) لتفعيلها بالكامل. الملفات المتوفرة حاليًا ملف HTML يحتوي على هيكل الصفحة (لاعبين: You / Me، أزرار Roll Dice و Hold و New Game) ملف CSS يحتوي على كامل التنسيقات والتصميم (خلفيات، تدرجات ألوان، تأثيرات، تجاوب مع الشاشات الصغيرة) 6 صور لتمثيل أوجه النرد من 1 إلى 6 ([login to view URL] إلى [login to view URL]) ملاحظة مهمة: أسماء الملفات المرفوعة غير متطابقة مع محتواها (محتوى HTML موجود داخل ملف باسم css، والعكس، وملف الجافاسكريبت شبه فارغ). يُفضّل توضيح هذه النقطة للفريلانسر ليقوم بترتيب الملفات بأسمائها الصحيحة أولًا قبل البدء. المطلوب تنفيذه (الجافاسكريبت) زر Roll Dice (): توليد رقم عشوائي بين 1 و6 عرض صورة النرد المطابقة ([login to view URL] → [login to view URL]) إذا كان الرقم = 1: تصفير النقاط الحالية (Current Score) وتبديل الدور للاعب الآخر إذا لم يكن 1: إضافة الرقم إلى Current Score زر Hold (): إضافة Current Score إلى رصيد اللاعب (Player Score) تصفير Current Score تبديل الدور للاعب الآخر التحقق: إذا وصل رصيد اللاعب إلى 100 (أو رقم يحدَّد لاحقًا) → إعلان الفوز زر New Game (): تصفير كل النقاط (Player Score / Current Score لكلا اللاعبين) إعادة تفعيل اللاعب الأول إخفاء صورة النرد تبديل الدور (Active Player): إضافة/إزالة كلاس active بين قسم .left و.right بحسب اللاعب الحالي حالة الفوز: عرض رسالة أو تأثير بصري عند فوز أحد اللاعبين تعطيل زر Roll/Hold حتى الضغط على New Game ملاحظة على التصميم القسم الأيمن (.right / Me) في HTML الحالي لا يحتوي على أزرار تحكم أو صورة نرد — يجب على الفريلانسر إضافتها بنفس نمط القسم الأيسر حتى تعمل اللعبة لشخصين بشكل كامل ومتماثل. المخرجات المطلوبة (Deliverables) كود جافاسكريبت كامل وموثّق بتعليقات بسيطة أي تعديلات ضرورية على HTML لإضافة عناصر القسم الأيمن الناقصة ملف يعمل مباشرة بفتح [login to view URL] بدون أي أخطاء في الكونسول توافق مع نفس التصميم الحالي بدون تغييره
Project ID: 40563352
99 proposals
Remote project
Active 3 days ago
Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
99 freelancers are bidding on average $19 USD/hour for this job

Hi there, نحن ن理解 أنك تحتاج إلى تطوير لعبة النرد "Pig Game" لشخصين، مع واجهة أمامية جاهزة وتصميم متميز. سوف نكتب منطق اللعبة بالجافاسكريبت لتفعيلها بالكامل، بما في ذلك زر Roll Dice و Hold و New Game، مع إضافة عناصر القسم الأيمن الناقصة. نحن قد عملنا على مشاريع مماثلة في الماضي، مثل تطوير ألعاب الويب باستخدام الجافاسكريبت و HTML و CSS. لدينا الخبرة في إنشاء تطبيقات تفاعلية ومتوافقة مع الشاشات الصغيرة. سوف نضمن أن اللعبة تعمل بشكل صحيح وبدون أخطاء في الكونسول، مع توافق مع نفس التصميم الحالي بدون تغييره. هل هناك أي تفاصيل إضافية ترغب في إضافتها إلى المشروع؟ Feel free to message us to discuss the details! — Webbook Studio
$15 USD in 40 days
9.1
9.1

Hi there, ★★★ JavaScript Expert ★★★ I understand you're looking to develop a two-player dice game using JavaScript. I'll start by organizing the files correctly to ensure everything is in its proper place. Then, I'll implement the game logic for the Roll Dice, Hold, and New Game buttons as specified. For the Roll Dice button, I'll generate a random number and display the corresponding dice image. If the number is 1, I'll reset the current score and switch turns. For the Hold button, I'll add the current score to the player's total and check for a win condition. The New Game button will reset all scores and prepare the game for a new round. I'll ensure that the right section of the HTML has the necessary controls and visuals to match the left side, creating a seamless experience for both players. Ready to get started!
$20 USD in 40 days
8.1
8.1

Greetings, I've read through your project about developing the "Pig Game" for two players, and I see you're looking for someone to implement the JavaScript logic to bring the game to life. My approach would start with organizing your existing files correctly to ensure everything is easy to manage. Then, I would write the JavaScript functions for the Roll Dice, Hold, and New Game buttons, ensuring that the game mechanics work smoothly and accurately reflect the rules you’ve outlined. I have a solid background in JavaScript, HTML, and CSS, which will allow me to seamlessly integrate the game logic with your existing design. I’ll make sure to add the missing elements for the second player and keep everything visually consistent. Looking forward to creating an engaging game experience for you! Best regards, Saba Ehsan
$20 USD in 40 days
7.4
7.4

With years of proficiency in full-stack development, I am equipped with the perfect blend of skills and the pedigree to accomplish your "Pig Game" project promptly and accurately. As a top 3% professional on Freelancer.com, I strictly adhere to deadlines while ensuring high-quality work. Understanding the essence of this assignment, I enjoy bringing the best traditional gaming experiences to life digitally, and being extensively experienced in website development and JavaScript programming, I can confidently say that I will be a great fit for this project. In the end, what speaks louder than promises is delivery. You can count on me to provide you with comprehensive JavaScript code that works seamlessly with your existing design and deliverables devoid of errors. Offering lifetime free bug-fixing guarantee along with optic designing projects like yours make hiring me an immensely profitable investment. Let's collaborate!
$15 USD in 40 days
7.9
7.9

Hi there, We’ve developed several web-based games, including multiplayer options, using JavaScript and PHP. With 15 years of experience, I can deliver a fully optimized product that works seamlessly across all devices. For your project, I’d recommend using a JavaScript framework like Vue.js or React.js for the front end, as they offer better performance and flexibility than traditional HTML/CSS. We can also integrate WebSocket for real-time player interactions. Let’s schedule a 10-minute introductory call to discuss your project in more detail and see if I’m the right fit. Feel free to message me anytime—I usually respond within 10 minutes. I’m eager to learn more about your exciting project. Best, Adil
$23.33 USD in 40 days
7.1
7.1

Hi there! I'm Markiyan, a full stack developer and CEO of a web agency, and I'd love to help you develop the Pig Game. I understand you need a fully functional front-end for the classic Pig Game, designed for two players on the same device, with the logic implemented in JavaScript to bring the game to life. My team and I have experience with similar projects, including game development and interactive web applications, and I'm confident we can deliver a high-quality solution. I can deliver a complete and functional JavaScript code, along with any necessary HTML adjustments to ensure the game works seamlessly for two players. One question: are there any specific requirements or preferences for the winning score, or would you like to stick with the default 100 points? Feel free to message me to discuss the details! — Markiyan
$20 USD in 40 days
6.9
6.9

مرحباً! ★★★★ (تطوير منطق البرمجة بلغة JavaScript للعبة النرد "Pig Game") ★★★★ فهم المشروع: أدرك أن لديك بالفعل ملفات HTML وCSS جاهزة للعبة النرد "Pig Game" المخصصة للاعبين، وأنك بحاجة إلى تنفيذ منطق اللعبة بالكامل باستخدام JavaScript. كما يتطلب الأمر تصحيح هيكلية الملفات، وإضافة العناصر المفقودة الخاصة باللاعب الثاني، وضمان عمل كافة مراحل اللعبة (رمي النرد، التثبيت/الاحتفاظ بالنتيجة، بدء لعبة جديدة، وشروط الفوز) بشكل سليم. ⚜ منطق اللعبة (رمي النرد، التثبيت، لعبة جديدة) ⚜ توليد أرقام عشوائية للنرد + تبديل الصور (من 1 إلى 6) ⚜ التبديل بين اللاعبين وإدارة حالة اللاعب النشط ⚜ تتبع النقاط وتحقق من شروط الفوز (الوصول إلى 100 نقطة) ⚜ تحديث واجهة المستخدم عبر التلاعب بـ DOM ⚜ إصلاح الأخطاء البرمجية وتصحيح هيكلية الملفات ⚜ إضافة عناصر التحكم وواجهة المستخدم المفقودة الخاصة باللاعب الثاني أمتلك خبرة في تطوير الألعاب المعتمدة على JavaScript (الواجهة الأمامية) وبرمجة منطق واجهات المستخدم التفاعلية. لقد قمت سابقاً ببناء ألعاب مشابهة تعمل في المتصفح باستخدام أحداث DOM، وإدارة حالات اللعبة (state management)، وكتابة كود JavaScript نظيف ومنظم (معياري/Modular). سأبدأ بمعالجة مشكلات تسمية الملفات وضمان هيكلية منظمة، ثم سأقوم بتنفيذ منطق اللعبة خطوة بخطوة مع إضافة تعليقات توضيحية لضمان سهولة فهم الكود وصيانته مستقبلاً. دعنا نتواصل؛ يمكنني إنجاز اللعبة بسرعة وجعلها تعمل بكفاءة تامة ودون أي أخطاء. تحياتي، فارهين ب.
$20 USD in 40 days
6.5
6.5

Hello, I came across your تطوير لعبة النرد "Pig Game" and I am very interested in working with you. I have reviewed your requirements and full understand the scope of expectations. I specialize in CSS, HTML, and have successfully delivered similar projects before. I am committed to delivering high-quality work with reliability, clarity and professionalism. I work transparently throughout the project progress, deadlines and expectation stay clear at every stage. I would be glad to disucss further details and am ready to start immediately. Looking forward to hearing from you. Regards. Anum
$20 USD in 1 day
6.0
6.0

Greetings, I understand the project requirements for developing the "Pig Game" front-end interface in Palestinian Territory. The objective is to implement the game logic using JavaScript to enable two players to play on the same device. The existing HTML and CSS files are almost complete, with the JavaScript logic needing to be written for full functionality. My expertise in JavaScript, CSS, and HTML positions me as a strong fit for this project. With a proven track record of reliable execution and long-term results, I am confident in delivering the required solution. You can view my portfolio here: ⭐⭐ https://www.freelancer.com/u/CodeAnchors ⭐⭐ Before finalizing the scope, could you clarify the priority between adding missing elements to the right section and ensuring full two-player functionality? Let's discuss further in an open chat to smoothly finalize the project scope. Best regards, Muhammad Anas Khan
$25 USD in 40 days
5.7
5.7

Greetings, It looks like you're looking to bring the classic "Pig Game" to life with a solid JavaScript implementation. I see that you have the HTML and CSS almost ready, which is a great start. My focus would be on ensuring the game logic works seamlessly, handling the dice rolls, score calculations, and player turns effectively. To tackle this project, I would: 1. Create a random dice roll function that updates the UI with the correct image and manages score logic. 2. Implement the player turn mechanics, making sure to switch turns when necessary. 3. Ensure the game resets correctly and displays victory messages clearly when a player wins. I’ll also address the file organization issue you mentioned, ensuring everything is in the right place for easy maintenance.
$15 USD in 3 days
6.0
6.0

في ألعاب مثل Pig Game المشكلة الحقيقية ليست في توليد رقم عشوائي بل في إدارة حالة اللعبة (game state) بشكل صحيح بحيث يبقى كل شيء متزامن بين اللاعبين بدون أي تعارض في التبديل أو تراكم النقاط بشكل خاطئ أثناء الدور. النقطة الحساسة هنا هي تصميم منطق موحد يربط بين Roll و Hold و New Game مع نظام واضح لتحديد اللاعب النشط وتحديث الـ DOM في نفس اللحظة بدون إعادة تحميل أو أخطاء في الحالة. الحل الصحيح يكون عبر JavaScript state بسيط لكنه منظم، يعتمد على متغيرات واضحة مثل currentScore و playerScores و activePlayer مع دوال منفصلة لكل إجراء لضمان أن تغيير الدور وإعلان الفوز يحدثان بشكل فوري وبدون تعارض. بعد ترتيب الملفات وتصحيح أسماء HTML/CSS/JS، يتم توحيد واجهة اللاعب الثاني (.right) بنفس بنية الأول لضمان توازن التفاعل بين الطرفين قبل ربط الأحداث. هل ترغب أن تكون حالة الفوز مجرد رسالة نصية داخل الصفحة، أم تأثير بصري كامل مثل overlay يعطل اللعبة ويظهر الفائز بشكل واضح؟ Best regards, Fizza Nadeem K
$15 USD in 40 days
5.8
5.8

Hi, I read through your requirements, and before suggesting an approach, I'd like to clarify one important point because it will affect the overall implementation and timeline. Could you share what you've already finalized, and which parts are still open for discussion? In my experience, spending a few minutes clarifying the requirements at the beginning usually avoids unnecessary rework later. Once I understand your expectations, I'll suggest the most practical and scalable approach based on your project rather than a one-size-fits-all solution. Let's discuss.
$20 USD in 40 days
5.3
5.3

Hey, the note about the swapped HTML/CSS files and the missing elements for the second player caught my eye. I'd start by sorting those files and adding the missing HTML, then build out the core game logic for rolling, holding, and turn switching in clean JavaScript. The real trick with Pig Game is often making sure the active player state and score updates are always perfectly in sync with the UI, which I'm confident handling. Is the 100-point win condition fixed, or will that be configurable later?
$30 USD in 40 days
5.2
5.2

As a seasoned developer with over 20 years of experience, my primary focus has been creating clean, maintainable solutions to complex problems - something that aligns perfectly with your project's requirements. I have not only honed my skills in HTML, but also have deep expertise in JavaScript, which is crucial for writing the game logic for your العبة جافاسكريبت "Pig Game". Having worked on numerous significant projects involving complex backend logics and third-party API integrations, I believe I possess the capability to handle the challenges مشروع واجهة أمامية (Front-end) للعبة نرد كلاسيكية تُعرف بـ"Pig Game" presents. Be it generating random numbers between 1 and 6 or toggling active classes with each roll - I am well-versed in translating requirements into functioning code with ease. Beyond just delivering your project as requested, like any good freelancer, my job does not end with just line-by-line coding. My goal is to ensure that the system remains stable and scalable even as you grow - offering long-term support whenever you need it. What sets me apart from others is not just the quality of my work but also my commitment to providing value-added service that creates more than mere satisfaction; it generates trust. Let's discuss how we can make your كتابة منطق اللعبة بجافاسكريبت "Pig Game" fully functional together!
$15 USD in 40 days
5.4
5.4

Hi! This is a great and clear brief. The rules for the "Pig Game" are laid out perfectly, from the dice roll logic and the 'Hold' function to the win condition and active player switching. This level of detail makes implementation very straightforward. First, I'll organize the HTML, CSS, and JS files correctly as you noted. A quick question: is the winning score fixed at 100, or should I make it a configurable variable at the top of the script so you can easily change it later? I will build the entire game logic using clean, modern, and well-commented vanilla JavaScript, ensuring it's lightweight and fast. The code will be structured to manage game state, player scores, and UI updates efficiently. The visual feedback you described—like switching the 'active' class and creating a winning effect—is crucial, and I'll ensure it's implemented smoothly. I can deliver a fully functional and polished game very quickly. Philip and The SKIIE Team
$23 USD in 7 days
4.8
4.8

This looks like a great fit, سنكتب كود الجافاسكريبت الكامل للعبة Pig Game: توليد النرد، حساب النقاط، تبديل الأدوار، وحالة الفوز. سنرتب الملفات بأسمائها الصحيحة أولاً ثم نضيف العناصر الناقصة في القسم الأيمن بنفس نمط التصميم الحالي. A couple of quick things to confirm: 1) هل رقم الفوز ثابت عند 100 أم تريد إمكانية تغييره؟ 2) هل تريد تأثير بصري معين عند الفوز (نافذة منبثقة، تغيير لون، أو غيره)؟ The number quoted here is a starting estimate. The exact cost and timeline will be confirmed after we go through the full scope together. Looking forward to talking through the details. Faizan
$19 USD in 40 days
5.2
5.2

✋ Hi there. I can write the complete JavaScript logic for your Two-Player Pig Game, including rolling, holding, and turn switching. ✔️ I have rich experience building game logic with JavaScript and recently completed a similar dice game with full state management and win conditions. I will develop this by writing the JavaScript to handle dice rolling with random number generation and image display, implementing the Hold logic to add points and switch turns, adding the New Game reset functionality, managing active player switching with CSS class toggles, and adding the missing Roll and Hold buttons to the second player's section for symmetry. Please click the 'Chat' button to start our valuable conversation. Looking forward to collaborating with you! Best regards, Mykhaylo
$20 USD in 40 days
4.9
4.9

Hi, I see that you're looking to develop a classic two-player dice game called "Pig Game," and you're almost there with the design ready. My focus would be on implementing the JavaScript logic to bring the game to life, including handling the roll, hold, and new game functionalities while ensuring a smooth user experience. To kick things off, I would first organize the existing files correctly, so everything is in its rightful place. Then, I’ll develop the game logic to manage the scoring, player turns, and winning conditions, all while keeping the design intact. I understand that adding controls for the right player section is essential, and I’d ensure that’s done seamlessly. I've worked on similar game projects before, and I prioritize writing clear, well-commented code for easy maintenance. My goal is to ensure a reliable and enjoyable game experience. Best regards, Novalitz Tech
$15 USD in 3 days
4.6
4.6

Hello, I built a turn-based dice game for a board game app last year—handled turn switching, scoring logic, and win conditions cleanly in vanilla JS. For this project, I'd wire the existing HTML/CSS to JavaScript using a single state object to track both players' scores, current turn, and dice roll. The biggest improvement will come from isolating the logic so each button click updates the DOM without side effects. I'll start by renaming files to match their content, then keep every change in one JS file with clear comments. Testing will be done in browser console before delivery to avoid console errors. The goal is a working two-player game that feels responsive and resets cleanly—no extra dependencies, just the core mechanics running smoothly. If we're aligned, I'll review the files now and send the first working build within a day. Thanks, Lazar.
$15 USD in 40 days
4.0
4.0

As a Full-Stack developer with a flawless project delivery record, my commitment is to deliver impeccable code in Javascript that will power your "Pig Game" backend. My experience spans not only in web development but also in creating AI systems and trading bots which demands meticulous handling of complex algorithms, something vitally important for managing the different game-plays and scoring mechanisms your project requires. I have also had successful prior experience with HTML, CSS, and JavaScript, the very tech stack you require for this engaging game. I am good at working closely with clients, understanding their needs and preferences in-depth. That's why I appreciate the detailed brief you provided along with cautions about mismatches in file names. Rest assured that before starting any work I'll fix them meticulously and ensure everything running smoothly. To sum up, my strongest selling points include my top-notch problem-solving skills, an ability to swiftly adapt to new technologies and projects like this. Furthermore, being a dynamic full-time freelancer I can ensure the utmost attention to your project while keeping myself overtly available for any emergency modifications. Let’s make this enthralling game come alive together!
$20 USD in 40 days
3.7
3.7

Gaza, Palestinian Territory
Member since Jun 30, 2026
$30-250 USD
₹12500-37500 INR
₹750-1250 INR / hour
₹12500-37500 INR
₹600-1500 INR
€750-1500 EUR
$250-750 AUD
$10-30 CAD
$750-1500 USD
₹12500-37500 INR
₹12500-37500 INR
₹12500-37500 INR
$30-250 AUD
$30-250 USD
₹600-1500 INR
$250-750 USD
₹1500-12500 INR
$10-30 USD
₹600-1500 INR
$250-750 USD