Realization of 2048 games in JAVA
preface
In 2014, Gabriele Cirulli spent the weekend writing the program of 2048, which was just fun. He wants to create a different visual effect from his own animation.
The game is implemented in java language, using swing technology for interface processing, and the design idea is object-oriented.
Main demand
Every time you control all bl ...
Added by reece_1989 on Sun, 06 Mar 2022 02:19:27 +0200
[daily question 1] preparing for the Blue Bridge Cup -- Python programming | Day11 | card | real question code analysis
๐ About the author: Hello, I'm brother cheshen, cheshen at No. 18 Fuxue road ๐ฅ โก About - > Che Shen: the fastest time from the bedroom to the laboratory is 3 minutes, and the slowest time is 3.5 minutes (that half minute is actually waiting for the traffic light) ๐ Personal homepage: Drivers only need cars and hands, and the pressure com ...
Added by faraway on Sun, 06 Mar 2022 01:34:54 +0200
[data structure] talk about a new tree -- binary search tree
preface
Binary search tree, also known as binary sort tree, is either an empty tree or a binary tree with the following properties:
If its left subtree is not empty, the value of all nodes on the left subtree is less than that of the root nodeIf its right subtree is not empty, the value of all nodes on the right subtree is greater than that o ...
Added by MatthewBJones on Sun, 06 Mar 2022 01:09:08 +0200
[Blue Bridge Cup] search topic summary -- real topic explanation
Write in front
Friends, we meet again ~ this article has been delayed again and again, and finally finished. This article talks about several true topics of investigating DFS and BFS in the Blue Bridge Cup. You can take a look at the previous two articles, which are very detailed about search. [10000 words] preparation for Blue Bridge Cup algo ...
Added by winmastergames on Sun, 06 Mar 2022 00:50:18 +0200
A summary of the new features of es6
1.let & const
let, similar to var, is used to declare variables
characteristic:
let cannot declare variables repeatedly, var can declare variables repeatedly;Block level scope: there are global scope, function scope and eval scope in es5; Block level scope is introduced in es6, and the variables declared by let are valid in the block l ...
Added by twigletmac on Sat, 05 Mar 2022 22:12:50 +0200
Usage and difference between CommonJS and ES6 MODULE
CommonJS usage
Note: exports, not exports
export
//Through module Exports exports an object that stores function functions or data or a specific value
//When importing, use the user-defined variable obj FN1 () can be used
module.exports = {
fn1: function () {
console.log("fn1")
},
flag: true,
arr: [],
}
//You can also export dire ...
Added by WendyLady on Sat, 05 Mar 2022 21:59:16 +0200
Create an online music player using HTML, CSS and JS (including free and complete source code)
Jump straight to the end Get the complete source code
Today, I'll take you to create with HTML, CSS and JS music player , no other libraries are used. Our music player has three parts. Home screen, player section and playlist section. Our home page section has a smooth work slider and horizontal scrolling. The best part of this music play ...
Added by mslinuz on Sat, 05 Mar 2022 21:55:35 +0200
An article takes you to use vue to complete a complete background
introduce
vue-element-admin Is a background front-end solution based on vue and element-ui realization. It uses the latest front-end technology stack, built-in i18 internationalization solution, dynamic routing and permission verification, refines the typical business model and provides rich functional components. It can help you quickly build ...
Added by fandelem on Sat, 05 Mar 2022 21:37:07 +0200
Understand the difference between setup() and < script setup > < script > in vue3
setup ()
Setup () is a vue3 newly added component. Vue3 adopts the composite API. In order to use the composite API, we need an entry, which is called setup in the vue3 component.
(to put it simply, do not use the data, method and calculated in vue2. All data and methods are written in setup.)
Let's take a simple example:
<template>
...
Added by Helios on Sat, 05 Mar 2022 21:30:27 +0200
5. Monitor concept, synchronized principle, synchronized lock upgrade and examples (lightweight lock, heavyweight lock, spin lock, bias lock)
Monitor concept
Java object header
Take 32-bit virtual machine as an example Common object Array object The Mark Word structure is 64 bit virtual machine Mark Word
reference material https://stackoverflow.com/questions/26357186/what-is-in-java-object-header
Principle of Monitor (lock)
Monitor is translated into monitor or tube Eac ...
Added by BK87 on Sat, 05 Mar 2022 21:29:30 +0200