# Assignment 2 Tic-tac-toe Game
This is a template for CS209A-22fall, assignment 2.
## How to start?
### Install
Enter the [github repository ](https://github.com/Sustech-yx/Tic-tac-toe)and [fork](https://github.com/Sustech-yx/Tic-tac-toe/fork) the repo. Clone the repo to your local machine.
### Configure
After fork and clone the repository into your local machine, if you run it immediately, you will meet `IllegalStateException`. It is because `javaFX` cannot find the correct position of the resource file. With IntelliJ IDEA, you can Right click the resources dict and mark it as *resources*.
![image-20221029213444154](README.assets/image-20221029213444154.png)
If the result seems like this, it means that you do the right thing.
![image-20221029213844851](README.assets/image-20221029213844851.png)
If you are using eclipse, you need to right-click Project>new>source folder, manually fill in the path of the resources directory, and then confirm.
### Start the game
The main function entry: `src/application/Main.java`.
![image-20220930180502858](README.assets/image-20220930180502858.png)
Now you can click the chessboard and play the game!
![image-20220930180659882](README.assets/image-20220930180659882.png)
## Java Version
The java version for reference. If you want to use another java language level, maybe there will be something wrong. Feel free to explore!
![image-20220930145108089](README.assets/image-20220930145108089.png)
You can use `System.out.println(com.sun.javafx.runtime.VersionInfo.getRuntimeVersion());` to check the version of `javafx`. The following screen-shot is the version of my machine.
![image-20221026155813168](README.assets/image-20221026155813168.png)
## Demo View
This is a demo view for the assignment. However, the basic functions are not complete yet. You should do it by yourself!
![image-20220930144914104](README.assets/image-20220930144914104.png)
## TODO
- [ ] Server (35pt.)
- [ ] Client/Player (35pt.)
- [x] GUI (15pt.)
- [ ] Exception Handling (15pt.)
- [ ] Bonus (15pt.)
## Hint
You need to first decouple the view and controller, divide the controller into two components: **client** and **server**, and then use **socket** to communicate between the two components to complete the basic functions.
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
【作品名称】:基于 Assignment2,SpringBoot+套接字编程实现联机井字棋 【适用人群】:适用于希望学习不同技术领域的小白或进阶学习者。可作为毕设项目、课程设计、大作业、工程实训或初期项目立项。 【项目介绍】:基于 Assignment2,SpringBoot+套接字编程实现联机井字棋
资源推荐
资源详情
资源评论
收起资源包目录
Java2Assign2-code.zip (16个子文件)
Java2Assign2-code
.github
ISSUE_TEMPLATE
feature_request.md 595B
bug_report.md 834B
resources
mainUI.fxml 918B
src
Service.java 3KB
Client.java 11KB
account.txt 47B
Server.java 2KB
README.assets
image-20221029213444154.png 189KB
image-20220930180659882.png 6KB
image-20220930180502858.png 106KB
image-20220930144914104.png 14KB
image-20221026155813168.png 8KB
image-20221029213844851.png 1KB
image-20220930145108089.png 20KB
.gitignore 855B
README.md 2KB
共 16 条
- 1
资源评论
MarcoPage
- 粉丝: 3084
- 资源: 3405
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功