Giter Club home page Giter Club logo

card_game's Introduction

image

pygelt写的card game,截图

主要想模仿stack那个游戏,两张或者多张卡牌可以堆叠后形成新的元素

非常有趣

建立环境

conda create --name pygame python=3.8 --channel https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/

激活之

conda activate pygame

安装

https://pyglet.readthedocs.io/en/latest/external_resources.html#third-party-libraries

pip install pyglet

https://glooey.readthedocs.io/en/latest/installation.html

pip install glooey

写起来很有趣

https://api.arcade.academy/en/latest/tutorials/card_game/index.html 最有参考价值的文章

转到windows的wsl2上来开发了

先去下载一个conda

https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/?C=M&O=A

wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/Anaconda3-2022.05-Linux-x86_64.sh

不行,我意识到了,wsl2不能开发这个东西,因为是个gui的程序

https://docs.github.com/cn/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent

windows下增加ssh到github

ssh-keygen -t ed25519 -C "[email protected]"

start-ssh-agent

(base) E:\development>start-ssh-agent Removing old ssh-agent sockets Starting ssh-agent: done Identity added: /c/Users/lemon/.ssh/id_ed25519 ([email protected])

然后它自动添加好了

clip < C:\Users\lemon/.ssh/id_ed25519.pub

然后就是copy粘贴

最后就是到web界面里add这个key了,这都简单了

conda create --name card_game python=3.8 --channel https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/

conda activate card_game

pip install pyglet

ok,这下子windows也可以了

card_game's People

Contributors

lemonhall avatar

Watchers

 avatar James Cloos avatar  avatar

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.