Find Jobs
Hire Freelancers

java graphics assignment

$10-30 USD

Selesai
Dibuat lebih dari 7 tahun yang lalu

$10-30 USD

Dibayar ketika dikirim
1. Use the project attached and complete a Java project on memory game similar to the one found at [login to view URL] You may use first 18 alphabet letters A to R instead of images. (Eventually you may want to figure out how to plot an image on each cell.) Below is the code format,in which code for the same needed to be written: //CSC730 //project: Hw12 //date: 12/7/16 //author: (your name) //purpose: import java.awt.*; import javax.swing.*; import java.awt.event.*; import [login to view URL]; class MatchingCard extends JPanel implements MouseListener { //array, variable declaration goes here MatchingCard() { addMouseListener(this); } public void paint(Graphics g) { //automatically called when this window is opended, closed or resized [login to view URL](g); //call method paint() in a super class to clear everything drawn before for (int i = 0; i < 7; i++) { [login to view URL](50+100*i, 50, 50+100*i, 650); [login to view URL](50, 50+100*i, 650, 50+100*i); } } public void mouseClicked(MouseEvent e) { Random rand = new Random(); Graphics g = getGraphics(); [login to view URL]([login to view URL]); Point p = [login to view URL](); if (p.x < 50 || p.x > 650 || p.y < 50 || p.y > 650) return; [login to view URL](55, 55, 90, 90); //plot try { //pousing 4 seconds [login to view URL](4000); } catch (InterruptedException i) { } [login to view URL](getBackground()); [login to view URL](55, 55, 90, 90); //erase int res = [login to view URL](null, "play again?: "); //res = 0 for yes, 1 for no, 2 for cancel if (res == 0) { repaint(); //steps for reseting } else if (res == 1) { [login to view URL](null, "Bye!!"); [login to view URL](0); } else; } public void mousePressed(MouseEvent e) { } public void mouseReleased(MouseEvent e) { } public void mouseEntered(MouseEvent e) { } public void mouseExited(MouseEvent e) { } } public class Hw12 { public static void main(String [] args) { JFrame myWin = new JFrame("Matching Card Game"); MatchingCard myGame = new MatchingCard(); [login to view URL](myGame); [login to view URL](720, 750); [login to view URL](100, 100); [login to view URL](true); [login to view URL](JFrame.EXIT_ON_CLOSE); } }
ID Proyek: 12297381

Tentang proyek

4 proposal
Proyek remot
Aktif 7 tahun yang lalu

Ingin menghasilkan uang?

Keuntungan menawar di Freelancer

Tentukan anggaran dan garis waktu Anda
Dapatkan bayaran atas pekerjaan Anda
Uraikan proposal Anda
Gratis mendaftar dan menawar pekerjaan
Diberikan kepada:
Avatar Pengguna
.................................................................................................................
$40 USD dalam 1 hari
4,9 (225 ulasan)
6,6
6,6
4 freelancer menawar dengan rata-rata $40 USD untuk pekerjaan ini
Avatar Pengguna
Hello, Sir Weebside Inc. is a professional freelancer service provided to worthy clients like you. We can provide our best developers to provide you High-Quality Product with 100% Delivery Rate, 100% Satisfaction. Having Experts in Java, C / C++ , C# , VB , .NET , SQL, MySQL, and Python Programming Language and Frameworks made us capable to bid here. We can provide any service of any caliber within Hours. CHAT WITH US TO START RIGHT NOW. BEST DEVELOPERS AROUND. WITH HIGHEST QUALITY DELIVERED WITHIN TIME. WITHIN BUDGET. CLICK CHAT TO START
$24 USD dalam 1 hari
4,7 (42 ulasan)
5,1
5,1
Avatar Pengguna
Hi, I am a java developer with more than 8 years of experience. I have very good math and computer science background. I have gone through your requirements and I can finish this job quickly and efficiently. Regards, sanman S.
$35 USD dalam 1 hari
0,0 (0 ulasan)
0,0
0,0

Tentang klien

Bendera UNITED STATES
richmond, United States
5,0
3
Memverifikasi Metode pembayaran
Anggota sejak Des 7, 2016

Verifikasi Klien

Terima kasih! Kami telah mengirim Anda email untuk mengklaim kredit gratis Anda.
Anda sesuatu yang salah saat mengirimkan Anda email. Silakan coba lagi.
Pengguna Terdaftar Total Pekerjaan Terpasang
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Memuat pratinjau
Izin diberikan untuk Geolokasi.
Sesi login Anda telah kedaluwarsa dan Anda sudah keluar. Silakan login kembali.