Git Product home page Git Product logo

freerui's Projects

2048 icon 2048

开始运行游戏,进入游戏欢迎界面, 输入数字2,游戏规则界面,任意键退出; getch(); //按任意键返回主界面 输入数字3,按键说明界面,任意键退出; 输入数字4,退出游戏; 输入数字1,进入开始游戏界面;显示积分、用时、执行步数,可以开始游戏。 通过上下左右键,进行数字合并, 若不能合并,则游戏失败:数字1,重新开始,进入游戏开始界面,选择数字2,退出游戏。 若可以合并,判断棋盘上是否出现2048, 若出现,则胜利,弹出游戏胜利界面。 若没有出现,则棋盘出现新的数字2或者4,接着判断,能否继续合并。 游戏过程中,按ESC,会弹出信息提示,问是否退出游戏,按y/n,是或者否。

myshell icon myshell

这是一个shell项目,该项目是模拟Linux下的命令解析器。Shell提供了一种与操作系统之间通讯的方式,在Linux上,它是一种命令行式的shell。等待用户输入命令,向操作系统解释用户输入的命令,并且处理各种各样操作系统向外部的输出结果。 这个项目,首先实现一个mybash操作,模拟Linux系统下的bash功能,接收并处理用户的输入命令;然后创建mybin目录文件,在该目录文件来存放可执行文件,即就是命令的实现。主要实现了cd、ls、su、pwd等命令,来模拟Linux下的bash简单操作。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.